Which of the following character is used to give single-line comments in Python?

Questions & AnswersCategory: Programming LanguageWhich of the following character is used to give single-line comments in Python?
1 Answers
Geek Boy Staff answered 2 years ago

b. #
Explanation: To write single-line comments in Python use the Numero sign (#) at the beginning of the line. To write multi-line comments, close the text between triple quotes.
Example: “”” comment
text “””