Advertisement
Spocoman

07. Christmas Tree

Jan 2nd, 2022 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. n = int(input())
  2.  
  3. for i in range(n + 1):
  4.     print(f"{' ' * (n - i)}{'*' * i} | {'*' * i}{' ' * (n - i)}")
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement