Advertisement
Spocoman

Cat Food Meow

Jan 10th, 2022 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.90 KB | None | 0 0
  1. n = int(input())
  2. output = ('.' * (n - 1) + '|' + '\\/' * n + '|' + '.' * (n - 1) + '\n'
  3.           + '.' * (n - 1) + '|' + '~' * (2 * n) + '|' + '.' * (n - 1) + '\n')
  4.  
  5. for i in range(1, n + 1):
  6.     output += '.' * (n - 1) + '|' + ' ' * (i - 1)
  7.     for j in range(n, i - 1, -1):
  8.         output += '{}'
  9.     output += f'{" " * (i - 1)}|{"." * (n - 1)}\n'
  10.  
  11. output += ('.' * (n - 1) + '|' + ' ' * (n - 2) + 'MEOW' + ' ' * (n - 2) + '|' + '.' * (n - 1) + '\n'
  12.            + '.' * (n - 1) + '|' + ' ' * (n - 2) + 'FOOD' + ' ' * (n - 2) + '|' + '.' * (n - 1) + '\n')
  13.  
  14. for i in range(1, n + 1):
  15.     output += "." * (n - 1) + '|' + ' ' * (n - i)
  16.     for j in range(1, i + 1):
  17.         output += '{}'
  18.     output += f'{" " * (n - i)}|{"." * (n - 1)}\n'
  19.  
  20. output += ('.' * (n - 1) + '|' + '~' * (2 * n) + '|' + '.' * (n - 1) + '\n'
  21.            + '.' * (n - 1) + '|' + '\\/' * n + '|' + '.' * (n - 1))
  22.  
  23. print(output)
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement