Test Index

Python Revision Tour Get it on Google PlayDownload on the App Store CBSE Board Videos

© examsnet.com
Question : 48 of 102
Marks: +1, -0
State whether the following statement is True or False.
In Python, the print() evaluates the expression before displaying it on the screen.
[CBSE 2025 Compartment]
Solution:  
Explanation:
Python first evaluates every expression given to print() and then displays the resulting value.
>>> print(2 + 3 * 4)
14
The expression 2 + 3 * 4 is worked out to 14 first; the value, not the expression, is shown. The statement is true.
Answer:
Option A (True)
© examsnet.com
Advertisements
Go to Question: