So today i have finally start learning python programming language, and i will use no of books for this purpose and sort of make notes here.
Why Make Notes Here
Well there are two reason i wanted to make notes about my learning of python.
- I forget things, but when i write things down, they make a snap shot in my head, so i will not forget them and even if i forget something i will always have them here.
- Second reason is if someone is also thinking to learning python, he/she can also consult them.
How to Start Programming in Python
step 1: Installing python environment
First you should have a python compiler for doing programming in python. Go the following page
http://www.python.org/download/
and download the appropiate download for yourself, i downloaded windows version and simply double click it and it install the following 4 things in my computer.
-
- Module Docs
- Python Manual
- IDLE ( Python GUI )
- Python ( command line)
IDLE ( Python GUI ) and Python ( command line) are the same things but IDLE give more interativity like coloring of code etc sort of IDE for python programming ( later i will use aptana for doing programming in python ).
Step 2: Writing your first program “Hello World”
Every is ready to start programming in python, click on “IDLE ( Python GUI )” and you will get a screen with the following message:
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer’s internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************IDLE 1.2.2
>>>
“>>>” is a Python prompt indicating that it is waiting for you to give it a command.
So write this there
>>> print ‘Hello World’
and it will pop out this
Hello World
>>>
So this was your first python program, yapiiiiiiiiiii.
End of this note.
—————