Advertisement
Spocoman

Illuminati Lock

Oct 12th, 2023
933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. n = int(input())
  2.  
  3. print(f"{'.' * n}{'#' * n}{'.' * n}")
  4.  
  5. for i in range(0, n - 2, 2):
  6.     print(f"{'.' * (n - i - 2)}##{'.' * i}#{'.' * (n - 2)}#{'.' * i}##{'.' * (n - i - 2)}")
  7.  
  8. for i in range(n - 3, -1, -2):
  9.     print(f"{'.' * (n - i - 2)}##{'.' * i}#{'.' * (n - 2)}#{'.' * i}##{'.' * (n - i - 2)}")
  10.  
  11. print(f"{'.' * n}{'#' * n}{'.' * n}")
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement