Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)
Can anyone tell me how to comment in Python?

1 Answer

0 votes
by (108k points)

If you want to add some comments in your code, you can use the # (hash) symbol, and followed by that you can write your single-line comment as shown below: 

#Write your single-line comment

But if you want to write multi-line comments, then you should use the following method:

’’’Write your ---

---multi-line comments’’’

If you are looking for an online course to learn Python, check out this Python Course by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 11, 2020 in Python by ashely (50.2k points)
+1 vote
2 answers
asked Jul 8, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Feb 9, 2021 in Python by Rekha (2.2k points)
0 votes
1 answer

Browse Categories

...