Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- empty = n - 1
- stars = 1
- for i in range(1, n + 1):
- print(" " * empty + "* " * stars)
- empty -= 1
- stars += 1
- high_down = n - 1
- down_empty = 1
- down_stars = n - 1
- for j in range(1, high_down + 1):
- print(" " * down_empty + "* " * down_stars)
- down_empty += 1
- down_stars -= 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement