Not quite. raw_input() is used to input a string, input() is used to input danger. :) input() in Python 2 invokes the eval() function, and that can be dangerous - see Eval really is dangerous by SO member Ned Batchelder. That article covers some advanced Python concepts, but it may help you understand that using eval() on random user input is not wise.
raw_input()is used to input a string,input()is used to input danger. :)input()in Python 2 invokes theeval()function, and that can be dangerous - see Eval really is dangerous by SO member Ned Batchelder. That article covers some advanced Python concepts, but it may help you understand that usingeval()on random user input is not wise.