simeonshopov

Butterfly (book)

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