+ 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

11th Nov 2020, 12:43 AM
AY🇳🇬
AY🇳🇬 - avatar
4 ответов
0
ÄYÖÖLÜWÄ you forgot a break if pers_age < 16: print("Too young!") break else: print("Get ready!") break
11th Nov 2020, 12:46 AM
BroFar
BroFar - avatar
0
Thanks a lot BroFar
11th Nov 2020, 12:47 AM
AY🇳🇬
AY🇳🇬 - avatar
0
It's still not workingBroFar
11th Nov 2020, 12:50 AM
AY🇳🇬
AY🇳🇬 - avatar
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!")
2nd Jun 2023, 1:14 AM
m rizki abdullah
m rizki abdullah - avatar