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 0f7a0b0 commit 430f39dCopy full SHA for 430f39d
15lesson.py
@@ -0,0 +1,21 @@
1
+# pyramic triangle
2
+# forRow = int(input('Enter number to make pyramic'))
3
+# spaceRow = forRow
4
+# for i in range(1,forRow):
5
+# for j in range(spaceRow):
6
+# print(end=' ')
7
+# spaceRow = spaceRow-1
8
+# for k in range(1,i*2):
9
+# print('*',end='')
10
+# print('')
11
+
12
+# reverse pyramic triangle
13
+forRow = int(input('Enter number to make reverse pyramic'))
14
+forStar = forRow
15
+for i in range(1,forRow):
16
+ for j in range(i):
17
+ print(' ',end='')
18
+ for k in range((forStar*2),3,-1):
19
+ print('*',end='')
20
+ forStar = forStar-1
21
+ print(' ')
0 commit comments