Which of the following character is used to give a single line comment in Python?

ICSE Class 10 Robotics & AI PYQ · 2025 Specimen · Section A

1(vii)1 Mark · 2025 · Section A · 2025 Specimen

Which of the following character is used to give a single line comment in Python?

Show SolutionHide Solution↓

#

Reason — In Python, the hash symbol (#) is used to write a single-line comment, which is ignored by the Python interpreter during program execution.

← Previous questionNext question →

Browse the free Robotics & AI sample bank