Advertisement
uzunovz

Softuniada 2017 - 02. Halloween Pumpkin

Jan 11th, 2017
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. size = int(input())
  2.  
  3. upper = "{0}_/_{0}"
  4. eyes = "/{0}^,^{0}\\"
  5. middle = "|{0}...{0}|"
  6. bottom = "\\{0}\\_/{0}/"
  7.  
  8. upper_dots = "." * (size - 1)
  9. body_dots = "." * (size - 2)
  10.  
  11.  
  12. print(upper.format(upper_dots))
  13. print(eyes.format(body_dots))
  14. for mid in range(size - 3):
  15.     print(middle.format(body_dots))
  16. print(bottom.format(body_dots))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement