Input vs raw_input


#1

what is the difference between

raw_input() in python 2.7

and input() in python 3.

as i try coding the same in python 3 it returns error with raw_ input function and input() gives the string with the value as output..


#2

raw_input() is renamed to input(), to get the equivalent of input() in python2, you can use eval(input()) in python3


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.