Examveda

Which of the following is a valid way to comment a single line in Python?

A. \ comment

B. / comment

C. <!-- comment -->

D. # comment

Answer: Option D

Solution (By Examveda Team)

The # symbol is used to comment a single line in Python.

This Question Belongs to Python Program >> Variable Names And Operators

Join The Discussion

Related Questions on Variable Names and Operators