top | item 8933783

(no title)

ycaspirant | 11 years ago

I'm curious to know what made you decide to teach Python 3 instead of Python 2? (I'm only asking because most courses these days seem to favor teaching Python 2).

discuss

order

vikp|11 years ago

A few reasons:

- Python3 makes some concepts, like unicode, division, the print function, etc, simpler to understand.

- Almost all major packages (only scrapy doesn't that I can think of), including the scientific stack, are compatible with 3.

- The trend towards 3 seems to be accelerating. 2 isn't going away anytime soon, but I'd like this content to be relevant for some time.

Ultimately, they aren't that different, and I may have a section listing out what you need to do to switch between them.

joelthelion|11 years ago

Because Python3 is the current version of python? If you're starting new projects, there are very few valid reasons not to use it.

xasos|11 years ago

A bunch of data sciene material, in particular, is written in Python 2.x, and it wouldn't be bad to teach Python2 either. You could always use the _future_ command for newer modules as well