YankoGrancharov

fort

May 28th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. vhod = int (input())
  2. row = vhod*2
  3. cula = vhod//2
  4. vis = vhod -2
  5. kula = ('/' + '^' * cula + '\\')
  6. kulaEnd = ('\\' + '_' * cula + '/')
  7. k = (cula+2)*2
  8. x = row - k
  9. y = row - 2
  10. iterval = '_'*x
  11. iterval2 = '¯'*x
  12. if row == k:
  13.     print(kula+kula)
  14. elif row > k:
  15.     print(kula+iterval+kula)
  16. if vhod > 2:
  17.     for i in range(1,vis+1):
  18.         print('|'+' '*y+'|')
  19. if row == k:
  20.     print(kulaEnd+kulaEnd)
  21. elif row > k:
  22.     print(kulaEnd+iterval2+kulaEnd)
Advertisement
Add Comment
Please, Sign In to add comment