Practice: Victory Loop

image

I hope this image is working. I am unsure of what the problem is. I am almost certain my code is correct and can’t seem to fix the error.

Please correct me if I am wrong.
Thanks,
Akhil

FYI it is for the Victory Loop practice problem in the “Loops” Chapter

Hey, the reason why your having issues is because you cannot modify the value in repeat. There’s a few ways around this where you would not be modifying repeat. Review the loops and how you could use a loop that does not modify repeat. And if you watch the solution to it afterwards, you will see there is a few different ways you can complete this…

Hope this helps!

2 Likes

I see. Thank you very much!