Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- print(f"{'.' * n}{'#' * n}{'.' * n}")
- for i in range(0, n - 2, 2):
- print(f"{'.' * (n - i - 2)}##{'.' * i}#{'.' * (n - 2)}#{'.' * i}##{'.' * (n - i - 2)}")
- for i in range(n - 3, -1, -2):
- print(f"{'.' * (n - i - 2)}##{'.' * i}#{'.' * (n - 2)}#{'.' * i}##{'.' * (n - i - 2)}")
- print(f"{'.' * n}{'#' * n}{'.' * n}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement