pose of adding a comment in the program What are the two ways used to add the comments in Python?
Answers
Answered by
4
Corrected question::
What are the two ways used to add the comments in Python?
Answer::
Single-line-comments --
After # sign, every character is ignored by python.
Example
# comment
Multiline-comments --
Within """ and """, every character is ignored by python. They are actually docstrings and not comments.
Example
"""
comment
"""
I hope that my answer helped you...
Similar questions