Advertisement
vojta249

letter_pi_ascii

Nov 2nd, 2023
869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. def letter_pi(size):
  2.     for row in range(1, size+1):
  3.         for collumn in range(1, size+1):
  4.             if collumn == 2 or collumn == size-1:
  5.                 print("#", end = "")
  6.             elif row == 1 and collumn != size:
  7.                 print("#",end = "")
  8.             elif row == size and collumn == size:
  9.                 print("#", end="")
  10.             else:
  11.                 print(".", end="")
  12.         print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement