HOW TO INSTALL AND RUN PYTHON
How to Install Python
Move to the official site of python>Downloads and download version as per your PC from provided options for Windows, Linux, Unix, Mac OS X and Others.
(SPECIAL RECOMMENDATION:- Try to avoid the latest version as some libraries will not work in that environment . For example, if the latest version is Python 3.9.2 then don’t install it and go for 3.8 versions.)
Link to site- https://www.python.org/downloads/
Download and start installing it and follow the series as
Setup pop-up window will appear > click on Install launcher for all users (recommended) and the Add Python 3.7 to PATH checkboxes at the bottom > then just accept the policy conditions > and click on Install > close.
After some time it will be installed on your PC.
**To check the version of python on your PC**
Open command prompt > type python -V > press enter
You will see the python version available on your PC
How to run Python
- With Command Line:- Once Python is installed, typing python in the command line will invoke the interpreter in immediate mode. We can directly type in Python code, and press Enter to get the output.
- Integrated Development Environment (IDE):- We can use any text editing software to write a Python script file.We just need to save it with the .py extension. But using an IDE can make our life a lot easier. IDE is a piece of software that provides useful features like code hinting, syntax highlighting and checking, file explorers, etc. to the programmer for application development.