Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- n = int(input())
- col_size = math.trunc(n / 2)
- mid_size = n * 2 - 2 * col_size - 4
- roof = ("/{0}\\{1}/{0}\\".format("^" * col_size, "_" * mid_size))
- print(roof)
- for i in range(n - 3):
- print("|" + " " * (2 * n - 2) + "|")
- print("|" + " " * (col_size + 1) + "_" * mid_size + " " * (col_size + 1) + "|")
- bottom = ("\\{0}/{1}\\{0}/".format("_" * col_size, " " * mid_size))
- print(bottom)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement