+ 3
Why it's giving error
I entered 78 and it returns me first output kindly checkout and please tell me where I made the mistake https://sololearn.com/compiler-playground/cxxsFZaY7PHw/?ref=app
6 Respuestas
+ 7
Noob Coder 🥂 ,
there is an overlapping in the conditionals that are used:
if age <= 18:
...
elif age >= 18:
both of them cover the age of 18...
+ 5
What's the question of your first "if"?
Does 78 meet that?
(It's not giving an error, it's giving you an answer you don't want. the code works "fine")
+ 5
Ohh sorry sorry I made a sily mistake but now it works find thanks alot Ausgrindtube and A͢J sir
+ 5
Manikandan ,
your post has *no relation to the question* that has been asked.
to avoid confusion, please kindly remove your post.
+ 4
Noob Coder 🥂 all good. That's one "error" everyone learns from.
Happy coding!
+ 3
Noob Coder 🥂
78 >= 18 ?