Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vhod = int (input())
- row = vhod*2
- cula = vhod//2
- vis = vhod -2
- kula = ('/' + '^' * cula + '\\')
- kulaEnd = ('\\' + '_' * cula + '/')
- k = (cula+2)*2
- x = row - k
- y = row - 2
- iterval = '_'*x
- iterval2 = '¯'*x
- if row == k:
- print(kula+kula)
- elif row > k:
- print(kula+iterval+kula)
- if vhod > 2:
- for i in range(1,vis+1):
- print('|'+' '*y+'|')
- if row == k:
- print(kulaEnd+kulaEnd)
- elif row > k:
- print(kulaEnd+iterval2+kulaEnd)
Advertisement
Add Comment
Please, Sign In to add comment