Ask coding questions

← Back to all posts
New to python, what am i missing?
Jdumais (0)

input("Hello, What year were you born in?", birthyear)
print("God your old... ")
print (2020 - birthyear)
print("??")
end

Commentshotnewtop
Shemira (13)

I am not sure what you mean. Could you be more specific?

DynamicSquid (2673)

The compiler doesn't know what birthyear is. You first have to declare a variable before you use it.

Jdumais (0)

@DynamicSquid
ok, so any idea how i tell the compiler what it is? I didn't think i had to define variables...