21/10/2023 1:19 pm
Topic starter

Notifications
Clear all
How to write comments in Python?
0
How to write comments in Python?
Answer
Add a comment
Add a comment
1 Answer
0
29/10/2023 11:35 am
There are two common ways to comment out multiple lines in Python:
- Using consecutive single-line comments: Prefix each line with the hash symbol (#).
- Using multiline strings as comments: Enclose the code within triple quotes (either single or double quotes).
Add a comment
Add a comment
Forum Information
- 22 Forums
- 1,969 Topics
- 5,308 Posts
- 1 Online
- 1,283 Members
Our newest member: Thomasnat
Latest Post: Space bug using " & n b s p ; "
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed