What about #multiline comments in #Python | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 5

What about #multiline comments in #Python

Can anyone explain more about multiline comments in python?

18th May 2018, 7:13 AM
Rahul Raj
Rahul Raj - avatar
3 ответов
+ 8
AFAIK, there's really no multi-line comment in Python. But you can use the """ """ (triple quotes). edit: here's a good reference https://www.codecademy.com/en/forum_questions/505ba3cfc6addb000200e33c
18th May 2018, 7:35 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 4
thanks a lot #Jonathan #Pizarra
18th May 2018, 8:12 AM
Rahul Raj
Rahul Raj - avatar
+ 1
There's no multi-line comment in python, but the equivalent is the docstrings, the """ """. The docstrings can contain information, explanations, directions and teststrings. They usually are found in the beginning of modules, classes and functions.
20th May 2018, 10:43 PM
Osamah Mohammed Al-Haddad
Osamah Mohammed Al-Haddad - avatar