"""Getting input from the user"""

# There are two built-in functions in Python for getting keyboard input

# when you want to read a string a string use the "raw_input" function:
name = raw_input("Please enter your name: ")
print "name has a type", type(name)

# when you want to read numbers use the "input" function:
age = input("your age? ")
print "age has a type", type(age)

print name, "says he is", age, "years old"

# if you enter an expression using input, python evaluates it:

expression = input("Enter a numerical expression: ")
print expression

# you can enter a string using input, but you have to surround it
# with quotes
string = input("please enter a string: ")
print type(string)