How to convert Python 2 code to Python 3?

How to convert Python 2 code to Python 3?