So far this is my best answer from a previous question that made me think to write this post.
mydict = {'key1': 'valueA', 'key2': 'valueB', 'key3': 'valueC'}
key_list = list(mydict.keys())
counter = 0
for i in [key_list[0], key_list[2]]:
counter = counter + 1
print('Looped through:', counter)