Check sibling questions

What would be the output of the following code snippets? print 4+9 print “4 +9”



Code 3 - Teachoo.jpg



4 +9


  • 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.

Get live Maths 1-on-1 Classs - Class 6 to 12

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.