What would be the output of the following code snippets? print 4+9 print “4 +9”
Answer:
Output:
13
4 +9
Explanation:
- In the first print statement, 4 and 9 are considered as integers and ‘+’ is an operator that adds 4 and 9 and then prints the output 13.
- In the second print statement “4+9” is considered a string since they are enclosed in quotes.