πŸ“Š Python
Q. Which of the following is the correct way to comment a single line in Python?
  • (A) // comment
  • (B) # comment
  • (C) /* comment */
  • (D) -- comment
πŸ’¬ Discuss
βœ… Correct Answer: (B) # comment

Explanation: Python uses the hash symbol for single-line comments.

Explanation by: Mr. Dubey
Python uses the hash symbol for single-line comments.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
47
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate