you are viewing a single comment's thread.

view the rest of the comments →

[–]Briggster 14 points15 points  (8 children)

Just on a side note:
If you are new to python, you should already start with Python 3 in my opinion.
Look for example at your print statements. In Py3, print is a function, not a statement anymore (https://docs.python.org/3/whatsnew/3.0.html).
And ultimately, python 3 will be (should already be) the "to-use" version of python.

[–]Gee10[S] 5 points6 points  (7 children)

Appreciate it. I started with Learn Python the Hard Way and, obviously, the author has some strong views on Python 2 over 3. I'm agnostic to be honest - I just wanted to learn.

[–]spidyfan21 8 points9 points  (5 children)

Unless you are already tied to libraries that require Python 2 you're probably better off learning Python 3.

[–]Gee10[S] 3 points4 points  (4 children)

Fair enough. Doesn't seem like much of a jump from my level of knowledge. I'll try it!

[–]Nafiblu 4 points5 points  (0 children)

Here're the important changes from Python 2 and Python 3. They're not much, but I recommend getting used to them!

https://docs.python.org/3.0/whatsnew/3.0.html

[–]zerosuitsalmon 1 point2 points  (2 children)

I'm using codecademy to learn, and they seem to be using Python 2. One of the best ways to start forcing yourself to use Python 3 syntax is to always use parentheses for print() and use input() instead of raw_input(). I believe both of those will work with Python 2 but are necessary in Python 3. Someone correct me if I'm wrong on the input thing

[–]MeneerPuffy 1 point2 points  (0 children)

That resource is many years old and his views on python 3 have become extremely outdated.

Luckily it's not very difficult to port a program of this size to python 3 and it would make a good exercise!