[Tutor] raw_input

Sander Sweers sander.sweers at gmail.com
Mon Jul 5 18:43:41 CEST 2010


On 5 July 2010 17:40, Shashwat Anand <anand.shashwat at gmail.com> wrote:
> use input() instead of raw_input() in Python3.x

To add to this, in Python 2 we had input() [1] (unsafe for most uses)
and raw_input() [2] (safe). Python 3 removed the old input() and
renamed raw_input() to input() [3,4].

Greets
Sander

[1] http://docs.python.org/library/functions.html#input
[2] http://docs.python.org/library/functions.html#raw_input
[3] http://docs.python.org/release/3.0.1/whatsnew/3.0.html#builtins
[4] http://www.python.org/dev/peps/pep-3111/


More information about the Tutor mailing list