1st method :
# sadhfkhfksd \
sdfjkljdsf \
afls;dfksd \
asfj;lkgfsd \
sdfsdkgj
2nd method:
if {0} {
----
---
---
}
In python
In Python, you can comment multiple lines using triple quotes (`'''` or `"""`). Here's how:
```python
'''
This is a multiline comment.
You can write multiple lines here.
'''
```
or
```python
"""
This is another multiline comment.
You can also write multiple lines here.
"""
```
Alternatively, you can comment each line separately using the `#` character:
```python
# This is line 1 of the comment
# This is line 2 of the comment
# And so on...
```
Both methods are commonly used in Python to provide comments that span multiple lines, and the choice between them depends on personal preference and the specific context of your code.
No comments:
Post a Comment