Advertisement
Spocoman

Skyscraper

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