We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f233a09 commit dcadf10Copy full SHA for dcadf10
__pycache__/ex11.cpython-310.pyc
380 Bytes
ex11.py
@@ -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
main.py
@@ -1,5 +1,6 @@
from ex1 import hello_world
from ex10 import calculator
+from ex11 import diagonal_printer
from ex2 import array_to_string
# ex1
@@ -60,6 +61,10 @@
60
61
# print(num_vowels)
62
63
# ex10
-while True:
64
- result = calculator()
65
- print(result)
+# while True:
+# result = calculator()
66
+# print(result)
67
+
68
+# ex11
69
70
+diagonal_printer("This is a test")
0 commit comments