1.

What is the difference between input() and raw_input()?

Answer»

raw_input() takes the input as a string whereas input() basically looks at what the user enters, and automatically determines the correct type. We use the input function when you are expecting an integer from the end-user, and raw_input when you are expecting a string.



Discussion

No Comment Found