I have a dictionary called regionspointcount
that holds region names (str
) as the keys and a count of a type of feature within that region (int
) as the values e.g. {'Highland':21}
.
I am wanting to iterate the key and value of dictionary while enumerating. Is there a way to do something like:
for i, k, v in enumerate(regionspointcount.items()):
or do I have to resort to using a count variable?