So I started to learn how to /prog/ram with a tutorial (A Byte of Python) for Python 3.0. It was great but suddenly the author decides he can leave out half the introduced concepts and expects the reader to just figure out why the code is written the way it is. I tried changing tutorial, but every other tutorial I have found is for python 2.x.
Should I a) Man up and figure out what he's doing myself
b) be irritating and constantly ask you guys what is going on
or c) start learning python 2.x instead?
I was thinking c) but I'm scared its gonna be obsolete.
Name:
Anonymous2009-03-07 1:59
One word, the forced indentation of code. Thread over.
Name:
Anonymous2009-03-07 2:07
Many people are still using Python 2.x. I'm still using 2.5 myself, and see no reason to change anytime soon.
Also, if you want a really good 2.5 reference/tutorial, try Core Python Programming by Wesley Chun. It's a great book, and half the reason I like Python as much as I do.
Do both a and c. Though if you're having trouble reading Python code, even as a beginner, programming almost certainly isn't for you.
Name:
Anonymous2009-03-07 2:57
>>1
Python 2.x will continue to be supported for years to come. It's fine to learn both as there is plenty of existing Python 2 code and Python 3 is supposed to fix up some Python 2's inconsistencies.
>>5
That, and they're really not much different superficially. If you learn Python 2 you'll have no problem with 3, and vice versa.
Name:
Anonymous2009-03-07 3:17
It will be a long while before all the major extension libraries are ported to Python 3.0; using 2.6 is probably a good half-way house.
Name:
Anonymous2009-03-07 3:32
For a beginner, the difference between Python 2 and 3 is negligible. Once you know Python 2, you can simply read one of those ``What's new in Python 3'' documents aimed at existing Python programmers.
OK thanks guys. >>4
No this was just a bad tutorial.. Im pretty confident programming is for me but thanks for making me think twice. I've looked at other 2.x tutorials and they're great. I didn't realise coding was so fun. Later on if I want to make a simple 2d game will I still be able to use python or would it be better to learn another language?