The raw_input
function is used to read input from the standard input (keyboard in most case).
It takes one optional argument, which is the string to print before reading the input. This can used to tell the user what he has to type.
The function returns the string that the user type until he hits enter.
For example,
name = raw_input("What's your name? ") print "Nice to meet you,", name + "."
If you want other types of input, you have to convert the string to those types yourself.
score = int(raw_input("Input your score: ")) if score >= 80: print "I bet you got an A." else: print "I think you didn't get an A."