0

Why is my code an infinite loop even though I have a counter

https://sololearn.com/compiler-playground/cQRREz0VKcDK/?ref=app

16th Mar 2025, 12:34 AM
Methodical bermuso
Methodical bermuso - avatar
2 Respuestas
+ 9
Methodical bermuso you didn't indent the counter so it doesn't know when to stop. while balls > 0: print("sell") balls = balls -1
16th Mar 2025, 1:00 AM
BroFar
BroFar - avatar
+ 3
Ohh thanks Bro far for the answer
16th Mar 2025, 7:08 PM
Methodical bermuso
Methodical bermuso - avatar