how to convert Python 3 to Python 2 code?

Question:

I had written a program in Python 3, but now want to convert it into Python 2 code. Are there any utilities to do that automatically?

Asked By: Roger Travis

||

Answers:

You want 3to2 for that.

Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.