Which of the following symbol is used to add comments in the Python language?

2024

Which of the following symbol is used to add comments in the Python language?

Answer: B. #In Python, the hash symbol # is used to add comments.

  1. A.

    *

  2. B.

    #

  3. C.

    !

  4. D.

    //

Attempted by 1064 students.

Show answer & explanation

Correct answer: B

In Python, the hash symbol # is used to add comments.

Explore the full course: Hpsc Pgt Computer Science

Loading lesson…