py file.py code example Example: .py file .py is the file extension for the python programming language