Here's a simple version of the code I'm trying to achieve:
for key, value in data.items():
for key2, value2 in data.items():
# other stuff
I'm looking for a way to start key2 off at key. So, for example in C++ it would be:
for(int i=0; i<n; i++){
for(int j=i; j<n; j++){
# other stuff
}
}
I need to be able to go through the whole data set. key is a string and value is a list that isn't in any particular order so I can't just check if key2 < key.