Having an Issue with Too Young To Ride challenge In Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Having an Issue with Too Young To Ride challenge In Python

Hi, I've been stuck on this challenge for the last two days and it's starting to frustrate me. The prompt: The carousel is designed for 3 people who are each at least 16 years old. You are given a program that takes all 3 passengers' ages as inputs and inserts them in a list. Complete the program so that if it finds a value less than 16, it breaks the loop and outputs "Too young!". If the age requirement is satisfied, the program outputs "Get ready!". Here is my code: https://code.sololearn.com/cbX3NysN2Pl3/#py This passes all but one test case in the problem. I can't seem to find what the issue is, though.

12th Feb 2022, 5:38 PM
Aaron Brannen
Aaron Brannen - avatar
2 Answers
+ 1
Thank you for your help! It worked. :)
12th Feb 2022, 6:59 PM
Aaron Brannen
Aaron Brannen - avatar
0
@ravilnicki That's what I tried originally. But it still ends up failing 2/5 test cases. I changed my code to reflect this more accurate solution.
12th Feb 2022, 6:01 PM
Aaron Brannen
Aaron Brannen - avatar