Comments | DocString | Python Language | Tutorial
Learn | Practice|
Python Language
( Comment , Docstring )
Comment :
Comment is basically for user, not a part of program. It is mainly use for elaborating codes for other person who are reading.
Python ignores it during execution.
' # ' Comment :
Hash ( ' # ' ) symbol is use to comment.
# This is example of a comment
' ctrl + / ':
It is short-cut to implement the comment.
This is example of a comment
Ctrl + /
# This is example of a comment
Doc-string (""" ........ """):
It is done when any documentations of a code. It is done with three double quotes at start and end of a document. Python ignores it during execution.
For Example:
"""Paragraphs are the building blocks of papers. Many students define paragraphs in terms of length: a paragraph is a group of at least five sentences """
Try:
Convert into comment :
This is a Tree
print(" What is your name")
Convert into Doc-string :
A document is a written, drawn
, presented, or memorialized
representation of thought
---------------------------------------------------
Related Links :
Download: Python
Install : python
---------------------------------------------------
Comments
Post a Comment
Give your feedback!
DO NOT SPAM !!
NO THIRD PARTY PROMOTIONAL LINK !!!! (else comment will be deleted.)