Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- high = n - 2
- length = 2 * n - 1
- points_out = int((n - 1) / 2)
- inner_points = n - 2
- print("." * points_out + "#" * n + "." * points_out)
- for i in range(1, high + 1):
- for j in range(1, length + 1):
- print("." * points_out + "#" + "." * inner_points + "#" + "." * points_out)
- break
- print("#" * points_out + "#" + "." * inner_points + "#" + "#" * points_out)
- second_high = n - 2
- arrow_points_out = 2
- points_left_right = int(arrow_points_out / 2)
- arrow_points_in = length - 4
- for x in range(1, second_high + 1):
- for y in range(1, length + 1):
- print("." * points_left_right + "#" + "." * arrow_points_in + "#" + "." * points_left_right)
- arrow_points_out += 2
- arrow_points_in -= 2
- points_left_right = int(arrow_points_out / 2)
- break
- final_points = int((length - 1) / 2)
- print("." * final_points + "#" + "." * final_points)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement