All of the examples I've given work, and you would normally use input() in Python 2 to create an int.

However, onpon4 is correct to point out that an operation is performed on the data given to the input() function in Python 2. This is the eval operation:
eval(raw_input(prompt))

You can learn about this and many other details of Python here:
https://docs.python.org/2/library/functions.html#input

Just make sure you are reading the documents for the version of Python you are working with.

Reply via email to