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 a0b39dc commit 9d1b302Copy full SHA for 9d1b302
1 file changed
patterns/ReversePyramid.py
@@ -0,0 +1,13 @@
1
+__author__ = 'Avinash'
2
+
3
+# Print a Reverse Pyramid
4
5
+# Range of the Reverse Pyramid
6
+num = int(input("Enter the range: \t "))
7
8
+for rows in range(num, 0, -1):
9
+ for columns in range(0, num-rows):
10
+ print(end=" ")
11
+ for columns in range(0, rows):
12
+ print("*", end=" ")
13
+ print()
0 commit comments