Masterie 28

 
“input() and raw_input()
These two procedures make your program wait for a user to type something, then return whatever the user typed.  input() will interpret the user’s text as Python code, while raw_input() will always return a string.  Unless your user knows Python, you’re usually better of using raw_input() to get a string, and then examining the string at your leisure in the rest of the program to determine what to do with that input.  input() and raw_input() take a string as an argument, which they will display to the user as a prompt. “
Link: https://www.udacity.com/wiki/ud036/building-a-ui-in-python

 

Leave a comment