+ 2

Docstrings in Python

Are """docstrings""" considered as comments in python? and why?

16th Sep 2018, 8:40 AM
N E P H A R I O
N E P H A R I O - avatar
2 ответов
+ 4
Docstrings are strings that can span multiple lines but the compiler will consider them as <del>comments<del> when they're not assigned to any variable. A smart way of making multi-line comments in python.
16th Sep 2018, 9:17 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 2
Thanks, Nomeh! but what is <del>....<del>? I didn't see this before?
16th Sep 2018, 9:48 AM
N E P H A R I O
N E P H A R I O - avatar