0
Im trying to make an Age verification function but i got ERORR
age = str(input()) if age < 12: print("You are not eligible for the app") else: print("You are eligible")
3 Answers
+ 5
age=int(input())
+ 2
Your "age" variable is a string â it needs to be integer if you want to compare it to 12
0
Thanks Prabhas Koya