raw_input("") has been eliminated from python 3.2 -


i have tried lot run raw_input("") on python console gives error. watch videos might have been made on old python. input("") method , why raw_input("") discarded in new version there reason ?

raw_input() renamed input() in python v3.x

the old input() gone, can emulate eval(input())

what's new in python 3 mention (and more):

pep 3111: raw_input() renamed input(). is, new input() function reads line sys.stdin , returns trailing newline stripped. raises eoferror if input terminated prematurely. old behavior of input(), use eval(input()).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -