r/Python • • May 30 '19

Dear python2 user

Post image
1.9k Upvotes

275 comments sorted by

View all comments

1

u/Sin-Silver May 30 '19

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?

3

u/Mr_Again May 31 '19

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.

1

u/Sin-Silver Jun 01 '19

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.

1

u/Mr_Again Jun 01 '19

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.

1

u/Sin-Silver Jun 01 '19

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.

1

u/Mr_Again Jun 01 '19

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

4

u/mountainunicycler May 30 '19

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.

1

u/Sin-Silver Jun 01 '19

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.

2

u/mountainunicycler Jun 01 '19

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.

1

u/Sin-Silver Jun 01 '19

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

2

u/mountainunicycler Jun 01 '19

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.