About Python Files
About Python Files
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 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.
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!
exit()