---

Converting your Python 2 code to Python 3

Python 2 reached the end of life on January 1, 2020. Python 3 has been available since 2008, but converting from 2 to 3 has been slow because of dependencies on libraries that were not available in Python 3 initially. This tutorial will show you how to convert Python 2 code to Python 3 using the 2to3 tool.