0

Need help

Please find bugs in this code and tell me

27th Feb 2022, 1:47 PM
Mary Rian
Mary Rian - avatar
5 Antworten
+ 4
Qasim Shahzad You are comparing integer value with string. Anything inside double quotes is known as String.
27th Feb 2022, 2:04 PM
A͢J
A͢J - avatar
+ 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 🙂
27th Feb 2022, 2:02 PM
ravishankar kumar
27th Feb 2022, 1:48 PM
Mary Rian
Mary Rian - avatar
+ 1
Thanks alot
27th Feb 2022, 2:14 PM
Mary Rian
Mary Rian - avatar