Wednesday, March 22, 2006

Python Notes

input v raw_input

input - returns an object that's the result of evaluating the expression.
raw_input - returns a string

arguments:
both take as input a string that displays to prompt the user

example:
first = raw_input("Please enter your age ")
second = input("Please enter your age again ")