getting TypeError with loop but not without
Im trying to get this JSON data to print counting up on different items from 0 until it runs out of items since it will be different for each build. I have 2 different codes I have the code without the while loop which doesnt give me and errors and runs how id like but it doesnt count up it just shows the first value, and then I have the code with the while loop that gives me the error when I try to count up.