Re: Backward compatible of Python 2 and Python 3

2017-06-05 Thread Lele Gaifax
Pradeep Patra writes: > I want to make a program which works in both python 2.7 and python 3. Is it > possible? Definitely yes. > For example python 2.7 have raw_input() to accept the input from command > line whereas python 3.x method is input(). One popular way of

Backward compatible of Python 2 and Python 3

2017-06-05 Thread Pradeep Patra
Hi, I want to make a program which works in both python 2.7 and python 3. Is it possible? For example python 2.7 have raw_input() to accept the input from command line whereas python 3.x method is input(). So I want to make sure the same program works in both the python versions.