How I get that order:
I'm taking a JSON file and placing it into a dictionary.
I then filter that dictionary and only retrieve the entries that fit my requirements. So a dictionary with say, 100 items may only come down to 4 items. The items could have been taken anywhere in the dictionary. Hence they are not KEY'd 0,1,2,3 etc. They could be keyed anything. 2,5,3,56,12, etc.
I should note I'm using 2.1.3
var characters = 
for k in dict:
Yes I am doing something similar, actually almost identical. I then do a
print(k) and I get
[3, 4, 0, 1] (in my example). so they're not sequential as in 0,1,2,3.
So if you look at the original question you can see I'm trying to pair them to a sequential order, so I can then use a lookup. So I want them to output something like:
The idea being in the end, that I want to press right arrow and move to next character with
=+1 and pressing left will go to previous character with
There MUST be a way to do it but I'm not great with arrays and dictionaries as yet. Maybe there's ANOTHER way to do this? Is there a way I can move between the data (going to the next one with an input) without needing them to have perfectly sequential keys?