I have an error in the following exercise, which I don't know why it happens. If you could help me I would be very grateful. The exercise is as follows:
My code corresponds to:
And the error that appears to me is the following:
I don't understand why the iteration limit is wrong.