Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

why python interpreter does not interpret the rest of the code

Screenshot1(Inside VS Code)

Hello, Can anyone tell me if there’s something wrong with my code?
Thanks!

Interpreter version:3.11.4 64bit (Microsoft Store)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Screenshot2 (On Replit.com)
I am expecting the same result as replit

>Solution :

The condition t >= 18 and t < 0 can never be true, since those two things can’t both be true at once. You probably meant or instead of and.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading