A

Admin • 833K Points
Coach

Q. How can you comment a single line in Python?

  • (A) // comment
  • (B) # comment
  • (C) /* comment */
  • (D) -- comment
  • Correct Answer - Option(B)
  • Views: 31
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Single-line comments in Python start with `#`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.