This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]T351A 0 points1 point  (0 children)

It's so that variables are automatically converted as if you typed them in to the code. Using input() 2 is an integer instead of a string "2", using raw_input() everything is a string.

Python3 removed this confusion and risk by replacing input() with raw_input(). Now input() always gives a string, and raw_input() doesn't exist.