DiYane

Patterns

Jul 2nd, 2023 (edited)
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | Help | 0 0
  1. num = int(input())
  2.  
  3. for i in range(1, num + 1):
  4.     print('*' * i)
  5.  
  6. for i in range(num - 1, 0, -1):
  7.     print('*' * i)
Advertisement
Add Comment
Please, Sign In to add comment