Advertisement
Spocoman

05. Patterns

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