EvilZone

Programming and Scripting => Scripting Languages => : RedGren8 May 28, 2012, 05:32:59 PM

: Python.
: RedGren8 May 28, 2012, 05:32:59 PM
Hi! I wanted to learn about Python but when I read some books about it I find it difficult to understand it. So can you show me the place where I can learn it? A place for dummies is good enough! ;D Thanks!
: Re: Python.
: pl0tuS May 28, 2012, 05:40:53 PM
which books did you read?
: Re: Python.
: RedGren8 May 28, 2012, 05:42:51 PM
I read some Ebooks on the Internet and I also read "Byte Of Python"

: Re: Python.
: centizen May 28, 2012, 05:48:11 PM
Check out Googles Python Classes:


http://code.google.com/edu/languages/google-python-class/ (http://code.google.com/edu/languages/google-python-class/)


Especially, do the exercises in the first exercise pack, they are a good starting point. Post here if you get stuck and I will do what I can (but won't hold your hand fyi). Python is a great language and I think you will like it.


http://code.google.com/edu/languages/google-python-class/exercises/basic.html
: Re: Python.
: pl0tuS May 28, 2012, 06:35:16 PM
⇒ Python Docs (http://docs.python.org/)
⇒ Hands-On Python (http://anh.cs.luc.edu/python/hands-on/handsonHtml/handson.html)
⇒ Dive Into Python (http://www.diveintopython.net/)

Check out Googles Python Classes:

http://code.google.com/edu/languages/google-python-class/ (http://code.google.com/edu/languages/google-python-class/)


And this video tutorials are also good.
: Re: Python.
: RedGren8 May 28, 2012, 06:39:44 PM
I installed Python 3.2.3, I opened IDLE and write print "Hello, World!" then I clicked enter and it said Syntax error: invalid syntax. How can I fixed it?
: Re: Python.
: Deque May 28, 2012, 06:43:13 PM
I installed Python 3.2.3, I opened IDLE and write print "Hello, World!" then I clicked enter and it said Syntax error: invalid syntax. How can I fixed it?

You have to decide if you want to learn Python 2 or Python 3. Your version of hello-world only works with Python 2.
: Re: Python.
: pl0tuS May 28, 2012, 06:46:07 PM
Yeah the documents I gave are for Python 2. I assumed you were talking about Python 2.

Python v3.2.3 documentation (http://docs.python.org/py3k/)
: Re: Python.
: Stackprotector May 28, 2012, 08:03:41 PM
print("Hello evilzone masters")
: Re: Python.
: techb May 28, 2012, 10:06:18 PM
Honestly, I'd stick with Python 2.x because a lot of third party libs like PIL don't work with python3 yet. You can do most things in 2.x as in 3. Such as the print method. print("hello world") works in Python 2.x aswell.
: Re: Python.
: RedGren8 May 29, 2012, 03:02:45 AM
So should I use Python 3 or Python 2?

: Re: Python.
: techb May 29, 2012, 03:24:54 AM
I would go with 2.6 or 2.7
: Re: Python.
: Kulverstukas May 29, 2012, 09:47:30 AM
Moved to Python section...
: Re: Python.
: centizen May 29, 2012, 07:04:48 PM
My recommend would be to go with 2.7, as it is compatible with almost all 3rd party libraries which is really where python becomes it's most useful. It's still under active development; so major updates in 3 are backported to 2.7. There's really no particular reason to go with three unless you want to work with straigh data bits instead of having everything encoded with unicode.


I use 2.7 and every other python professional I know does too
: Re: Python.
: flowjob May 29, 2012, 07:24:35 PM
I agree with centizen,and additionally you will find much more tutorials and books about Python 2.x than about 3.x
And a lot more people know 2.x better,so you will find more help/answers than with 3.x