In
this page you can learn the most important use of python comments. Python supports two types of comments.
Comments
are the most helpful staff of any program. It enables us to understand the way,
a program works. In python, any statement written along with # symbol is known
as a comment. The interpreter does not interpret the comment.
Comment
is not a part of the program, but it enhances the interactivity of the program
and makes the program readable.
·
Single
lined comment.
·
Multi
lined Comment.
Single
lined comment
If
developer want to only specify one line comment than use single line comment,
then comment must start with ?#?
# This is single line comment.
Multi-lined Comment
If
developer want to multi-line code comment than use Multi lined comment. like
this..
''''' This
startup
India by Narender Modi'''
0 comments:
Post a Comment