Python for Beginners – Part 2 – Installing Python
In last article “Learning Python – Introduction To Python” we discussed what is Python and most important why to learn Python. In this article we will discuss steps to install the Python on Windows. I have Windows 10 on my laptop.
Following are the detailed steps to install the Python on Windows 10.
- Download the latest version of Python for Windows – Download Python for windows from https://www.python.org/ and download page https://www.python.org/downloads/ as
Figure 1: Python: Download page – https://www.python.org/downloads/
- Run the Setup
- Python 3.7.3 executable will be downloaded.
- Once the executable downloaded successfully, run it as administrator as shown in below figure
Fig 2 : Python : Downloaded executable
- Once we ran the executable, Python installation dialog appears as
Fig 3 : Python : Installation dialog
- Click on “Install Now” option as shown in above Fig.
- Make sure Python Successfully installed
Fig 4 : Python : Installation successful dialog
- Once Python is installed successfully, you could see the Python editor, manual, desktop app when we search for Python in “Search Windows” in task bar as
Fig 5 : Python : Once successfully installation searching “Python” from “Search Windows”
Or, if we also go through “Start >> All apps >> Python 3.7 as
Fig 6 : Python : Folder in Windows after successfully installation
- Python editor / shell is installed with Python installable, we can open Python editor / shell as
Fig 7 : Python : Opening Python shell installed with Python Setup
- Once we opened Python editor it looks like as
Fig 8 : Python : Python Sell/Editor
- To start initially, There is help() command available to get the help as
Fig 9 : Python : help() in Python Shell
- We could change the Python shell settings from the top tool bar – “Options >> Configure IDLE”, once we clicked “Settings” dialog box will appear as shown in below figure, where we can change the theme, text color
Fig 10 : Python : Changing the Python shell settings – “Settings” dialog
- We could also get the list of available “Python Keywords”, “Topics”, “Modules”, “Symbols” we can us respective commands like “keywords”, “topics”, “modules”, “symbols” as
Fig 11 : Python : Displaying Python keywords in Python Shell
Note: Here, these commands are case sensitive. This means if we will use “Keywords” instead of “keywords” we will get an error as
Also, regarding Python Keywords, Topics, Modules, Symbol, we will discuss in detail in upcoming articles.
Fig 12 : Python : error for “Keywords” – its case sensitive, it should be “keywords”
- Finally there is quit() command available to exit the shell as
Fig 13 : Python : quit() to exit the Python shell
Thanks for reading 🙂
Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more.
If you have any suggestion / feedback / doubt, you are most welcome.
Stay tuned on Knowledge-Junction, will come up with more such articles.