0

while True: num = input('Enter age for all users separated by a comma: ') n = num.split(',') print(n) if len(n)

Pls how do I end this while true statement from repeating

9th Mar 2021, 5:05 PM
Ojukwu Franklin Ifeanyi
Ojukwu Franklin Ifeanyi - avatar
2 Answers
0
You don't need while line.
9th Mar 2021, 5:12 PM
Kodirbek Makharov
Kodirbek Makharov - avatar
0
Make True a variable, so you can change it inside the loop to break out of the loop
17th Apr 2021, 7:38 AM
Lisa
Lisa - avatar