Q. How do you comment multiple lines in Python?

  • (A) Using multiple # characters
  • (B) Using /* */
  • (C) Using <!-- -->
  • (D) Using triple quotes ''' ''' or """ """
πŸ’¬ Discuss
βœ… Correct Answer: (D) Using triple quotes ''' ''' or """ """
Explanation: Triple quotes can be used to create multiline comments (although technically multiline strings).
Explanation by: Mr. Dubey
Triple quotes can be used to create multiline comments (although technically multiline strings).

πŸ’¬ Discussion


πŸ“Š Question Analytics

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