Skip to content

Commit 20bb191

Browse files
authored
Create Pyramid.py
#7
1 parent f7b2135 commit 20bb191

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Pyramid.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
i = 1
2+
while (i<=5):
3+
print("5"*i)
4+
i+=1
5+
6+
j=1
7+
k=4
8+
while (j<=9):
9+
print(" "*k + "5"* j)
10+
k = k-1
11+
j=j+2

0 commit comments

Comments
 (0)