Port for Python2 code | Sololearn: Learn to code for FREE!

+2

Port for Python2 code

What is the easiest way to run python2 code on device with python3 installed without running into errors ?

2/8/2018 7:57:53 PM

Samces

2 Answers

New Answer

+5

install python2 right along side it. I've done it before!

+1

Use futurize: http://python-future.org/automatic_conversion.html