Enumerate with keys from a dict

The problem here is that Dict is not thread safe and you are therefore creating race conditions. You might be interested in this thread:

2 Likes