Python Comment
What is Comment
Comment is used for indication of code whenever we use comment that are ignored by compiler & interpreter.
Creating Comment
To make comment we need to use "#"
Example: #This is comment in python
We need to use "#" for single and multiple lines of comments but we can use '''.....''' or """...""" because string literals will always be ignored by python when not assigned to variable.
Comment is used for indication of code whenever we use comment that are ignored by compiler & interpreter.
Creating Comment
To make comment we need to use "#"
Example: #This is comment in python
We need to use "#" for single and multiple lines of comments but we can use '''.....''' or """...""" because string literals will always be ignored by python when not assigned to variable.
Comments
Post a Comment