How to iterate a dict with enumerate such that I could unpack the index, key and value at the time of iteration?
Something like:
for i, (k, v) in enumerate(mydict):
    # some stuff
I want to iterate through the keys and values in a dictionary called mydict and count them, so I know when I'm on the last pair.
 
     
    