Untitled
Anonymous
plain_text
02/22/2025 4:23 PM
760 B
12
Indexable
# A simple Python program to print a heart shape and a loving message
def print_heart():
heart = [
" **** **** ",
" ****** ****** ",
"***************",
" ************* ",
" *********** ",
" ********* ",
" ******* ",
" ***** ",
" *** ",
" * "
]
for line in heart:
print(line)
def love_message():
print("\nCode loves you! ❤️\n")
if __name__ == "__main__":
print_heart()
love_message()Editor is loading...
Leave a Comment