Which character begins a single-line comment in Python?
Correct answer B. #
Explanation
In Python a comment starts with a hash character # that is not inside a string literal and runs to the end of the physical line. // is the floor division operator in Python, while -- and /* are comment markers in languages such as SQL and C. Python has no dedicated multi-line comment syntax.
Answer checked How we write and check questions
Discussion