When i tries to run it, it always pop out "runtime error Select list item: Attempt to get item number 1 of a list of length 0: [] Note: You will not see another error reported for 5 seconds





The problem is here.

This means that name is empty. You have to check whether the list is empty before you do anything.

In here.

1 Like

the problem is in this one
image

I don't really understand, can you suggest what should i change in detail?

Logically in real life, you cannot find the first item in an empty grocery list. So, you have to make sure the list is not empty before you do anything.

image

1 Like