Support Forums
Python for beginners - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32)
+---- Thread: Python for beginners (/showthread.php?tid=194)

Pages: 1 2 3


Python for beginners - L0iz - 10-05-2009

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.


RE: Python for beginners - Extasey - 10-06-2009

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!


RE: Python for beginners - L0iz - 10-06-2009

Glad it helps someone.
Also thanks for +rep.


RE: Python for beginners - Zammyslave - 10-07-2009

I've taught of learning Python for over a year. I'm actually gonna give it a go now.


RE: Python for beginners - S0rath 0f the Black Sun - 10-08-2009

Thanks for the great tut L0iz Big Grin


RE: Python for beginners - flAmingw0rm - 10-08-2009

Thanks a lot, good job.


RE: Python for beginners - kojic - 10-09-2009

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


RE: Python for beginners - Akshay* - 10-09-2009

thanx

fro sharing it


RE: Python for beginners - d2ax5n - 10-10-2009

Thanks allot bookmarked it for later use, first gotta finish my first book though.


RE: Python for beginners - flexyx - 10-12-2009

thx very much dude =)