Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- x = n * 2 - int(n / 2 + 2) * 2 if n > 4 else 0
- print(f"/{'^' * int(n / 2)}\\{'_' * x}/{'^' * int(n / 2)}\\")
- for i in range(n - 3):
- print(f"|{' ' * (n * 2 - 2)}|")
- print(f"|{' ' * int((n * 2 - (x + 2)) / 2)}{'_' * x}{' ' * int((n * 2 - (x + 2)) / 2)}|")
- print(f"\\{'_' * int(n / 2)}/{' ' * x}\\{'_' * int(n / 2)}/")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement