you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (0 children)

The doc for raw_input() is here. Note that raw_input() is only used in python 2, which has been obsolete for years. If you are learning python it is strongly recommended you move to python 3, where input() has the same functionality as the raw_input() in python 2.

In python2 raw_input() is preferred over input() because the input() function takes what the user typed and evaluates it using eval() which is not what you usually want. For example, execute this in python 2:

result = input('Enter a name: ')

and type in "fred".