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

  • (A) // comment
  • (B) # comment
  • (C) /* comment */
  • (D) -- comment
πŸ’¬ Discuss
βœ… Correct Answer: (B) # comment
Explanation: Single-line comments in Python start with `#`.
Explanation by: Mr. Dubey
Single-line comments in Python start with `#`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
82
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate