With the help of the 2to3 tool, we start the conversion from version 2 to version 3.
- Click on the terminal in the status bar->now you are in shell command in the root of your project->In this type the command to convert(mydemo.py)
2to3 mydemo.py -w
- If you want to convert all file from the folder then type the below command:
2to3. -w
Interested in python, check out the Python course with guided projects and 24X7 support by Intellipaat.