Skip to content

Commit

Permalink
Create reversed_pattern3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
InTruder-Sec authored Jul 17, 2022
1 parent f118886 commit 4757c3b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions reversed_pattern3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#Simple inverted number triangle piramid
#11111
#2222
#333
#44
#5

def main():
lines = int(input("Enter no.of lines: "))
pattern(lines)

def pattern(lines):
t = 1
for i in reversed(range(1, (lines +1))):
format = str(t)*i
print(format)
t = t + 1

if __name__ == "__main__":
main()

0 comments on commit 4757c3b

Please sign in to comment.