Skip to content

How to print red heart in python 3

I need to print the red heart emoji ❤️️ with unicode in Python 3 but it has two unicodes (U00002764 and U0000FE0F). How am I suppose to print it? For example, a green heart is print(“U0001F49A”) Answer Whether it “works” depends on the font you have and which glyphs it supports. Here&#…

Printing variables and strings in Python

I am trying to print the following lines : ‘My name is John Smith.’ ‘My name is John Smith, and I live in CHICAGO’ and I live in chicago’ My code below : How can I get the results from the top? Answer Output: My name is john smith, and I live in chicago. I am 25 years old. By