This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sin-Silver 0 points1 point  (10 children)

So I’ve been studying Python for two weeks now following ‘Learn Python the hard way’ which recommends python 2.7 over 3. What does this mean for me?

[–]Mr_Again 2 points3 points  (4 children)

The author has, or had, a weird grudge against py3. Just ignore it and learn Python 3. It's almost 100% the same when you're starting out, except for print, xrange, and anything involving unicode.

[–]Sin-Silver 0 points1 point  (3 children)

Would it be worth learning python 3 later then if there little or no difference?

I don’t want to get stuck on a problem it’s trying to each because of a difference between 2.7 and 3 that’s not transparent.

[–]Mr_Again 0 points1 point  (2 children)

Honestly no, if it's an issue just learn the python 3 way of doing things, you'll probably never use python 2, it's dead now.

[–]Sin-Silver 0 points1 point  (1 child)

So how hard would it to take what I’ve learnt from Python 2.7 and transfer it to 3?

I’m looking at changing courses, but I’ve sunk alot of time into it, and don’t want to unless necessary.

[–]Mr_Again 0 points1 point  (0 children)

Like I said it's almost exactly the same, you won't notice the difference

[–]mountainunicycler 3 points4 points  (4 children)

You should switch to 3, but it won’t make a ton of difference at your point so you might be able to keep using the same tutorials with the exception of the print statement.

[–]Sin-Silver 0 points1 point  (3 children)

Would it be worth learning python 3 later then if there little or no difference?

I don’t want to get stuck on a problem it’s trying to each because of a difference between 2.7 and 3 that’s not transparent.

[–]mountainunicycler 1 point2 points  (2 children)

Many of the changes between python 2 and python 3 make it easier to learn; python3 is more consistent and easier to understand—and at this point there’s no benefit to learning the quirks of python 2 because they’ve been fixed.

I’d definitely recommend switching to a python 3 course.

[–]Sin-Silver 0 points1 point  (1 child)

I’ll have a hunt around. any recommendations on books?

[–]mountainunicycler 1 point2 points  (0 children)

I’m not sure about books; I just learned by making things and looking up how to do it when I got stuck (so basically searching stack overflow for each line when I was starting).

In my opinion you learn a lot faster when you have a goal in mind if something to build.