Advertisement
Spocoman

Eiffel Tower

Sep 25th, 2023
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. n = int(input())
  2.  
  3. for row in range(n):
  4.     print('-' * (n + 2) + '**' + '-' * (n + 2))
  5.  
  6. for row in range(n - 3):
  7.     print('-' * (n + 1) + '*' * 4 + '-' * (n + 1))
  8.  
  9. print('-' * n + '*' * 6 + '-' * n)
  10.  
  11. for row in range(n - 4):
  12.     print('-' * n + '**--**' + '-' * n)
  13.  
  14. for row in range(n - 3):
  15.     print('-' * (n - 1) + '**----**' + '-' * (n - 1))
  16.  
  17. print('-' * (n - 2) + '*' * 10 + '-' * (n - 2))
  18.  
  19. for row in range(n - 3, 0, -1):
  20.     print('-' * row + "**" + '-' * (2 * n + 2 - 2 * row) + "**" + '-' * row)
  21.  
  22. print("***" + '-' * (2 * n) + "***")
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement