summaryrefslogtreecommitdiff
path: root/day1/exercise/pyramid1.py
diff options
context:
space:
mode:
Diffstat (limited to 'day1/exercise/pyramid1.py')
-rw-r--r--day1/exercise/pyramid1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/day1/exercise/pyramid1.py b/day1/exercise/pyramid1.py
new file mode 100644
index 0000000..ba24141
--- /dev/null
+++ b/day1/exercise/pyramid1.py
@@ -0,0 +1,5 @@
+n = input('How many lines? ')
+for i in range(1, n + 1):
+ for j in range(i):
+ print i,
+ print