convert python 2 to 3

Solutions on MaxInterview for convert python 2 to 3 by the best coders in the world

showing results for - "convert python 2 to 3"
Jazmín
06 Feb 2019
1# Example Python 2 code
2def greet(name):
3    print "Hello, {0}!".format(name)
4print "What's your name?"
5name = raw_input()
6greet(name)
7
8# Invoke 2to3 on the command line.
92to3 example.py
10
11# Docs for the module available at https://docs.python.org/3/library/2to3.html#module-lib2to3
12
13