Comments => is created by inserting an octothorpe (#)
Python doesn't have general purpose multiline comments
Docstrings => serve a similar purpose to comments (design to explain code) , they are created by putting a multiline string containing an explanation of the function below the function's first line .
docstrings are retained throughout the runtime of the program , This allow programmer to inspect tese comments at run time .
No comments:
Post a Comment