Please help, I am working on a project for my school and we all have not been able to get this part to work. We are trying to build an app where users can select a ice cream flavor from a list and it will allow uses to vote and show up on a list viewer. However when we click vote, we get the following message.
When you initialize the program, VoteList is assigned one element: [0]. You are getting the index of flavor_list, which has many elements; to replace that same index in VoteList, which has one element.
If you want a separate list element in VoteList for each element in flavor_list, you should initialize VoteList with ten elements (all of which have 0 as their value); respectively as flavor_list also has ten elements.