Need help with making my list start from the beginning

I am trying to make a quiz app (the overall details are still incorrect just trying to fix the main function) and after the 5th and final question of the list is answered, I get error messages saying there is no 6th item in the list so the app stops working. I have been trying to make the list restart from index 1 after the 5th item is used, can anyone help?

Try with this:

I did what you suggested, and once I run it I get the message that the operation index cannot accept the arguments.

share your blocks

This is wrong...:
image

If you want to show the first question again after check the last response it is enough with this condition instead:
image

I was able to figure it out, thank you!