[Solved]: AttributeError: 'dict' object has no attribute 'iterkeys'

Python 2.x

What if you wanted to iterate over just the keys?

>>> tuple(d.iterkeys())('a', 'c', 'b')

Python 3.x

>>> tuple(d.keys())('a', 'c', 'b')