Python was developed by Guido Van Rossum in in 1980s in Netherlands as a successor to ABC programming language. Python community has given him the title, Benevolent Dictator for Life ( BDFL ) which means that he will be principal mentor of Python language.
Python 2.0 incorporates features like garbage collector, support for unicode and transparent development.
This will include details about installing python in windows and some programs:
Installation procedure:
Step 1: Download python 2.7.9 from this link: https://www.python.org/downloads
Step 2: Install it, these screen shots will guide you.
Click on Run
Choose Install for all users
Click on Next
Scroll down, click on drop down icon beside Add python.exe to the path.
Choose ‘Entire feature will be installed on local had drive’ option so that it can be added to variables automatically. Then click on ‘Next’
Then windows installer should install Python 2.7.9 for you.
Click on ‘Finish’
Now open My computer, right click, go to ‘Properties’. Click on ‘Advanced System Settings’, go to “Environment Variables’.
Click on ‘New’ button under System variables.
Let the variable name be Python and variable value be C:\Python27. Click on Okay.
Scroll down in system variables till you find ‘Path’ variable. Edit it, add ;C:\Python27 to the end of variable value.
Then click on ‘Okay’. Restart your system.
After restarting your system, open cmd, type ‘python’ and it should show you an output as shown in the screen shot:
Type print Hello. It will return an error message:
Let us put double quotes around Hello now.
Voila! You’ve written Hello World program in Python successfully 🙂
Note: Python is extremely strict about code indentation. We’ll deal with this in part 2.
You can perform basic arithmetic operations like addition, subtraction, multiplication and division.
For ex: Just enter 2+3 in python shell and it will return 5 as answer.
More programs and more explanation in part 2. Stay tuned 🙂
[…] Installing python and learning python ( part-1 ) […]
LikeLike