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?

  1. A.

    *

  2. B.

    #

  3. C.

    !

  4. D.

    //

Attempted by 215 students.

Show answer & explanation

Correct answer: B

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

Explore the full course: Rssb Senior Computer Instructor