You can run your python program by calling the Interpreter:
For Python 2: python <filename>.py
For Python 3: python3 <filename>.py
Or, you can call the Interpreter through the script with the help of the below steps:
Step 1: You have to keep one thing in mind that the first line of the file must have #!/usr/bin/env python
Step 2: Now, you have to make your file executable with the help of the code chmod +x <filename>.py
Step 3: Finally, you can execute your file as ./<filename>.py
If you are looking for an online course to learn Python, I recommend this Python Certification program by Intellipaat.