Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count_stars = int(input())
- number_spaces = count_stars
- space_step = -1
- number_stars = 1
- stars_step = 1
- for row in range(1, 2 * count_stars):
- print(" " * (number_spaces - 1) + "*" * (2 * number_stars - 1))
- if row == count_stars:
- space_step = 1
- stars_step = -1
- number_spaces += space_step
- number_stars += stars_step
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement