Python basics
Executing Python from script

Python codes can be saved in file and executed from Unix shell prompt as follows. First, make the code executable using chmod u+x

$ python /path/to/python_file.py
Single line comment

Python's single line comment begins with #

# This is Python comment
Multi-line comment

Python does not provide multi-line comment option, but provides documentation string which can be used to comment. The documentaition string begins with """ and ends with """

"""
This is Python's
multi-line comment
"""
Comments