here2share

# b_heart_ascii.py

May 6th, 2026
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. # b_heart_ascii.py
  2.  
  3. R = range
  4. L = [0,13,10,8,6,5,4,4,4,4,5,*R(6,29,2)]
  5. W = [0,9,14,18,21,23,25]
  6.  
  7. for y in R(23):
  8.     x = L[y]
  9.     w = W[y] if y < 7 else 0
  10.     s = 2 if y < 2 else w or 1
  11.     l = "".join(" #"[i in R(x, x+w+1, s)] for i in R(29))[1:]
  12.     print(l + l[-2::-1])
Advertisement
Add Comment
Please, Sign In to add comment