Support Forums

Full Version: Python for beginners
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Since I'm a bit into Python, i think I'll start this sub-forum.

First of all, why learning Python?
Well, because it's a easy programming language which can be used to create all range of programs, from simple ones to high-end programs with GUI.
And it's one of the best (if not the best) language to start with.

What we need:
Download Python from Python.org (There are two versions 2.6 and 3.1, I recommend 2.6, simply because there is more documentation available)
Also note, that Python is pre-installed on most Linux systems.

Install it and fire up "IDLE (Python GUI)"
That's a Python shell, a place where you can preform basic operations, like declaring variables, functions...

Than, you should start learning by a guide.
I recommend the How to Think Like a Computer Scientist - Learning Python 2nd edition
It's a nice guide with exercises at the end of each chapter.

When the shell is not enough for you click "File" and "New window".
That would open a notepad-alike window, where you can create programs.

How to save and run a program?
When you have done programming in notepad-alike window, File -> Save as.
Be sure to add a .py at the end of filename. That will save your program in Python folder.

To run a program, fire up shell and type:
Code:
execfile("filename.py")

When you ran into a problem, google it (works in most cases), or post it here. I'll try to help, if I'm able to.
thanks!
I've been thinking about learning python for a while now, just because i know iPhone's can run it.

This may be the motivation I need!
Glad it helps someone.
Also thanks for +rep.
I've taught of learning Python for over a year. I'm actually gonna give it a go now.
Thanks for the great tut L0iz Big Grin
Thanks a lot, good job.
http://www.openbookproject.net/thinkCSpy/ is perfect site for learning!!......man u r helping a lot!!!

tY mAn
and
PeRfEcT JoB
Big GrinBig GrinBig Grin
thanx

fro sharing it
Thanks allot bookmarked it for later use, first gotta finish my first book though.
thx very much dude =)
Pages: 1 2 3