Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
InTruder-Sec authored Jul 16, 2022
1 parent e9700ae commit f02b11f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions new_pattern.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#pattern
#@@@@@@@@ $
#@@@@@@@ $$
#@@@@@@ $$$
#@@@@@ $$$$
#@@@@ $$$$$
#@@@ $$$$$$
#@@ $$$$$$$
#@ $$$$$$$$

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

def pattern(lines):
t = 1
for i in reversed(range(lines)):
nxt_pattern = "$"*t
pattern = "@"*(i+1)
final_pattern = pattern + " n " + nxt_pattern
print(final_pattern)
t = t +1

if __name__ == "__main__":
main()

0 comments on commit f02b11f

Please sign in to comment.