Chitrank Dixit Chitrank Dixit - 7 months ago 20
Python Question

raw_input("") has been eliminated from python 3.2

I have tried a lot to run

on the python console but that gives an error. Moreover I watch some videos that might have been made on old python. so
is the only method and why
is discarded in the new version is there any reason ?


raw_input() was renamed to input() in Python v3.x

The old input() is gone, but you can emulate it with eval(input())

What's new in Python 3 will mention this (and more):

PEP 3111: raw_input() was renamed to input(). That is, the new input() function reads a line from sys.stdin and returns it with the trailing newline stripped. It raises EOFError if the input is terminated prematurely. To get the old behavior of input(), use eval(input()).