Computer Science, asked by shardakumari164, 5 hours ago

pose of adding a comment in the program What are the two ways used to add the comments in Python?​

Answers

Answered by purveshKolhe
4

\huge{\green{\boxed{\mathfrak{\blue{answer::}}}}}

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