ExamVeda
Login
Home
Introduction to Python
?

What is the syntax used to write comments in Python?

Answer & Solution
Correct Answer: Option C
In Python, the syntax used to write comments is # Comment.
Comments in Python are indicated by the pound sign (#) followed by the text of the comment. Anything following the # symbol on a line is considered a comment and is ignored by the Python interpreter during execution. Comments are used to add explanatory notes or annotations within the code to make it more readable and understandable for other programmers or for future reference.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.