So I am getting an invalid syntax error when trying to run this little guy,
age = input("Please tell me your age?: ")
age_test = eval(age)
if age_test < 1:
print("You can't be negative!")
if age_test > 100:
print("You can't be over 100!")
else:
Can someone help me out here? I'm not new to programming but I am new to python and I don't see anything wrong.
Aucun commentaire:
Enregistrer un commentaire