Test Index
Python Revision Tour
© 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 ignoredprint(5) # prints 5So the statement is True.Answer:Option A (True)
© examsnet.com
Go to Question: