Advertisement
simeonshopov

Sun Glases (book)

Nov 11th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import math
  2. n = int(input())
  3. print("*" * (2 * n), end="")
  4. print(" " * n, end="")
  5. print("*" * (2 * n))
  6. for i in range(n - 2):
  7.   print("*" + ("/" * (2 * n - 2)) + "*", end="")
  8.   if i == (n - 1) // 2 - 1:
  9.     print("|" * n, end="")
  10.   else:
  11.     print(" " * n, end="")
  12.   print("*" + ("/" * (2 * n - 2)) + "*")
  13. print("*" * (2 * n), end="")
  14. print(" " * n, end="")
  15. print("*" * (2 * n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement