New course! Every coder should learn Generative AI!
Try a free lesson0
What to when you actually want to print 2+2 and not the answer of 2+2 in python
2 Answers
+ 5
Write it as a string: "2+2"
+ 1
You will get same result as you put in the string such as print("2+2")
Output 2+2