what is the easiest way to transfer codes from Python 2.0 to 3.0. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

what is the easiest way to transfer codes from Python 2.0 to 3.0.

25th Jul 2016, 7:22 PM
Vipul Siddharth
Vipul Siddharth  - avatar
2 Antworten
+ 1
I found something amazing to do this: the "future" module. Basically, you can use it in python 2 to use the python 3 syntax. With it you can prepare slowly yours scripts and then use python 3. see : http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html#the-future-module
25th Jul 2016, 9:01 PM
samuel delepoulle
samuel delepoulle - avatar
0
knowing the syntax and features of both. Enough to know whether or not the code would work on py3.
25th Jul 2016, 8:48 PM
Gershon Fosu
Gershon Fosu - avatar