Test Index

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

© examsnet.com
Question : 90 of 102
Marks: +1, -0
State True or False.
“Comments are not executed by interpreter.”
[CBSE 2023 Compartment]
Solution:  
Concept:
A comment starts with #. It is written only for the reader of the program.
Explanation:
The interpreter ignores everything from # to the end of the line, so a comment is never executed and does not change the output:
# this line is ignored
print(5) # prints 5
So the statement is True.
Answer:
Option A (True)
© examsnet.com
Advertisements
Go to Question: