Advertisement
sredo

05. Cat Food Meow

Jun 20th, 2018
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. n = int(input())
  2.  
  3. points = n - 1
  4. slashes = n
  5. lang = n * 2
  6. brackets = n
  7. spaces = 0
  8.  
  9. for i in range(1, 2 * n + 7):
  10. if i == 1 or i == 2 * n +6:
  11. print('.' * points + '|' + '\\/' * slashes + '|' + '.' * points)
  12. if i == 2 or i == 2 * n + 5:
  13. print('.' * points + '|' + '~' * lang + '|' + '.' * points)
  14. if i == n + 3:
  15. print('.' * points + '|' + ' ' * (n - 2) + 'MEOW' + ' ' * (n - 2) + '|' + '.' * points)
  16. if i == n + 4:
  17. print('.' * points + '|' + ' ' * (n - 2) + 'FOOD' + ' ' * (n - 2) + '|' + '.' * points)
  18. spaces -= 1
  19. brackets += 1
  20. if i > 2 and i < n + 3:
  21. print('.' * points + '|' + ' ' * spaces + '{}' * brackets + ' ' * spaces + '|' + '.' * points)
  22. spaces += 1
  23. brackets -= 1
  24. if i > n + 4 and i < 2 * n + 5:
  25. print('.' * points + '|' + ' ' * spaces + '{}' * brackets + ' ' * spaces + '|' + '.' * points)
  26. spaces -= 1
  27. brackets += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement