Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = int(input())
- for row in range(number):
- print('*', end='')
- for col in range(row):
- print('*', end='')
- print()
- for row in range(number - 1, 0, -1):
- print('*', end ='')
- for col in range(row - 1):
- print('*', end='')
- print()
Advertisement
Add Comment
Please, Sign In to add comment