2 ms·
> other than choosing python 3 vs 2 you don't have much control over that. But you do! Add "from __future__ import print_function" to your code and now it ca
by wyldfire 10y ago
> other than choosing python 3 vs 2 you don't have much control over that.
But you do! Add "from __future__ import print_function" to your code and now it can execute identically or near identically among python 2, 3. [1]
[1] https://docs.python.org/2/library/__future__.html https://docs.python.org/2/library/__future__.html
- mikeckennedy 10y agoOK, true. :) But given the course is Python 3 it's moot in that scenario.