0
Need help
Please find bugs in this code and tell me
5 Antworten
+ 4
Qasim Shahzad
You are comparing integer value with string.
Anything inside double quotes is known as String.
+ 2
Qasim Shahzad
you are comparing string type values instead of integers
age = int(input())
if ( age > 0 and age <= 11):
print("Child")
elif ( age > 11 and age <= 17):
print("Teen")
elif ( age > 17 and age <= 64):
print("Adult")
I hope it helped 🙂
+ 1
Thanks alot