To check whether python is installed in Windows PC,mac or Linux .
C:\Users\Your Name>python --version.
Or
To check if you have python installed on a Linux or Mac, then on linux open the command
line or on Mac open the Terminal and type.
python --version
Need to write the python language in Python (.py) files in a text editor and then put those files
into the python interpreter to be executed.
To run a python file in command Line.
Eg:C:\Users\Your Name>python helloworld.py
Here helloworld is python file.
To write a small code,there is no necessity to write the code in a file,as the Python can be
run as a command line itself.
If python command is not working,instead we can give py.
Eg:C:\Users\Your Name>python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello, World!")
Hello, World!
To quit the command line of interface.
exit()