i

Python Programming

Multi-line Comments in Python

For more than one line comments are shown as below:

1. # Long comment and we are extending to multiple lines.

2. Another way is putting ‘’’ symbol at start of comment ‘’’ at end of comment.

Docstring in Python - It is a string that occurs as the first statement in a module, function, class, or method definition. For example:

            def test(num):     

‘’’comment for function to test any value’’’