What are the two types of comments in Python? How are they written?
Answer:
Answer by student
The two types of comments in Python are single-line comments and multi-line comments. Single-line comments are written by using a # symbol at the beginning of the comment . Multi-line comments are written by using triple quotes (‘’’ or “”") at the start and end of the comment.
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.