Python installation
Many pcs have python already installed on the system, to check if python is installed on your pc open command line and type
C:\\Users\\Your Name>python --version
For MAC os open command line and type
python --version
Quick Start
Python is a programming language for your pc to know that it is a python file to end the file name with a py. The way to run the python line via command line is
C:\\Users\\Your Name>python helloworld.py
Where \”helloworld.py\” is the name of your python file.
Let\’s write our first Python file, called helloworld.py, which can be done in any text editor.
print("Hello, World!")
Simple as that. Save your file. Open your command line, navigate to the directory where you saved your file, and run
C:\\Users\\Your Name>python helloworld.py
The output should read
Hello, World!
Congratulations, you have written and executed your first Python program.