+ 2
[SOLVED] else with for-python
I don't know what is wrong with the code Test 2 is failing but the other test cases are correct. Pls help me fix it. https://code.sololearn.com/c1NMVp1Li198/?ref=app
4 Answers
0
ĂYĂĂLĂWĂ you forgot a break
if pers_age < 16:
print("Too young!")
break
else:
print("Get ready!")
break
0
Thanks a lot BroFar
0
It's still not workingBroFar
0
ages = []
i = 0
while i < 3:
age = int(input())
ages.append(age)
i += 1
if min(ages) < 16:
print("Too young!")
break
else:
print("Get ready!")