+ 2

Python!!??

what is difference between "raw_input" and "input" in Python??

17th Jul 2017, 4:06 PM
Anuj
2 RĂ©ponses
+ 5
raw_input() is same in Python2 as input() in Python3 input() in Python2 has no more equivalent in Python3 if you absolutly need the behaviour of input() in Python2 in a script written in Python3, combine it with the eval() function... but it's highly discouraged, as it's an unsafe function ^^
17th Jul 2017, 4:14 PM
visph
visph - avatar
+ 1
thnx visph
17th Jul 2017, 4:16 PM
Anuj