I have some code in python 2.7 and I want to convert it all into python 3.3 code. I know 2to3 can be used but I am not sure exactly how to use it.
To convert the code from python2 to python3 first install the 2to3 package by using
pip install 2to3
Then run this command in directory where is your python code
2to3 -w -n .