Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python for beginners
#1
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.
Reply


Messages In This Thread
Python for beginners - by L0iz - 10-05-2009, 10:42 AM
RE: Python for beginners - by Extasey - 10-06-2009, 01:54 AM
RE: Python for beginners - by L0iz - 10-06-2009, 05:04 AM
RE: Python for beginners - by Zammyslave - 10-07-2009, 08:52 PM
RE: Python for beginners - by flAmingw0rm - 10-08-2009, 09:47 AM
RE: Python for beginners - by kojic - 10-09-2009, 04:34 AM
RE: Python for beginners - by Akshay* - 10-09-2009, 05:25 AM
RE: Python for beginners - by d2ax5n - 10-10-2009, 06:12 PM
RE: Python for beginners - by flexyx - 10-12-2009, 09:29 AM
RE: Python for beginners - by zenzul - 10-13-2009, 06:45 PM
RE: Python for beginners - by Dingo_Dog - 10-13-2009, 11:32 PM
RE: Python for beginners - by Akshay* - 10-14-2009, 03:07 AM
RE: Python for beginners - by Nighthawk - 10-14-2009, 11:02 AM
RE: Python for beginners - by nevets04 - 10-17-2009, 09:39 PM
RE: Python for beginners - by nevets04 - 10-26-2009, 04:36 PM
RE: Python for beginners - by L0iz - 10-27-2009, 12:23 AM
RE: Python for beginners - by uber1337 - 10-28-2009, 04:56 PM
RE: Python for beginners - by Yoshi - 10-29-2009, 02:12 AM
RE: Python for beginners - by Kenji Harima - 11-04-2009, 07:59 PM
RE: Python for beginners - by skilla215 - 11-10-2009, 04:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Help Dεlluzion 3 1,774 09-30-2019, 12:59 AM
Last Post: samsmith001
  Python tutorial websites for beginners BigdaddyV 6 1,826 04-08-2012, 11:15 AM
Last Post: Mysterious
  Simple Python Python Compiler Canoris 21 8,355 06-01-2011, 06:30 PM
Last Post: Filefinder
  Python 2 vs 3? Jake 8 2,224 12-11-2010, 04:13 PM
Last Post: Bursihido
  Projects for Beginners 6-10 uber1337 3 1,693 02-18-2010, 09:13 PM
Last Post: nevets04

Forum Jump:


Users browsing this thread: 2 Guest(s)