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
- 14 Forums
- 1,837 Topics
- 5,053 Posts
- 0 Online
- 1,079 Members
Our newest member: Tyronenodub
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed