Skip to content

Commit dcadf10

Browse files
committed
11/13
1 parent f233a09 commit dcadf10

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Diff for: __pycache__/ex11.cpython-310.pyc

380 Bytes
Binary file not shown.

Diff for: ex11.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def diagonal_printer(sentence):
2+
words = sentence.split()
3+
i = 0
4+
for word in words:
5+
for letter in word:
6+
print(i * ' ' + letter)
7+
i += 1
8+
i = 0

Diff for: main.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from ex1 import hello_world
22
from ex10 import calculator
3+
from ex11 import diagonal_printer
34
from ex2 import array_to_string
45

56
# ex1
@@ -60,6 +61,10 @@
6061
# print(num_vowels)
6162

6263
# ex10
63-
while True:
64-
result = calculator()
65-
print(result)
64+
# while True:
65+
# result = calculator()
66+
# print(result)
67+
68+
# ex11
69+
70+
diagonal_printer("This is a test")

0 commit comments

Comments
 (0)