0

Hi. How do i insert a mulit-line comment in Python? Is it as easy as it sounds? I feel like im over-thinking it. Thanks!

2nd Mar 2019, 11:07 AM
Peter
Peter - avatar
5 Antworten
2nd Mar 2019, 11:21 AM
Mert Yazıcı
Mert Yazıcı - avatar
0
One way to comment on more lines is using multiline string """ multiline comment """ And second is commenting each line # multiline # comment
2nd Mar 2019, 11:18 AM
Maneren
Maneren - avatar
0
This is how I was expecting it to be. Thanks a lot!
2nd Mar 2019, 11:20 AM
Peter
Peter - avatar
0
There are no multi-line comments in Python. You can use multi-line string instead. Multi-line strings are processed by interpreter in contrast with comments but they are often used for this purpose. https://www.sololearn.com/learn/Python/2274/
2nd Mar 2019, 11:23 AM
portpass
0
Okay thanks. My course told me to insert a multi-line comment and it made me confused 🤣
2nd Mar 2019, 11:24 AM
Peter
Peter - avatar