3 ms·
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
by ycaspirant 12y 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).
- joelthelion 12y agoBecause Python3 is the current version of python? If you're starting new projects, there are very few valid reasons not to use it.
- xasos 12y agoA 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
- vikp 12y agoA 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.