+ 3
Difference in raw_input and input???
3 Respostas
+ 2
raw_input() returns a string whereas input() treats the input like runnable code. So input from input() can be used to call functions for example.
+ 1
Well it depends on the version of python.
If I recall correctly in python 3.x there's only input() and it returns a string. If you want to turn it into runnable code, you have to apply eval() on the string.
- 1
@Doc Exactly the other way around.