I am a student about 4 weeks into learning python, so i do not know a lot, and am hoping someone can help me understand what i am doing wrong, here is the code:
def main():
name = "TEST"
age = 50
makename()
makeage()
print "You are" ,age ,"years old", name
def makename():
name = raw_input("Please enter your name ")
return name
def makeage():
year = input("What is the year current year? ")
byear = input("What year were you born in? ")
age = year - byear
return age
main()
inputs:
Please enter your name student_
What is the year current year? 2010
What year were you born in? 1985
output:
You are 50 years old TEST
what have i done incorrectly?