CBSE Class 11 Informatics Practices Question 52 of 62

Getting Started with Python — Question 20

Back to all questions
20
Question

Question 20

Try the following code on the Python shell and evaluate the output generated:

>>> print (3.14159*7)
>>> print('I am a class XI' + 'student')
>>> print('I', 'am')
>>> print ("class XI student")
>>> print ("I'm", 16, "years old")
Answer
Output
21.99113
I am a class XIstudent
I am
class XI student
I'm 16 years old