SyntaxFix
Write A Post
Hire A Developer
Questions
I can't think of any reason why you would want to do that. If you just need to iterate over the dictionary, you can just do.
for key, elem in testDict.items(): print key, elem
OR
for i in testDict: print i, testDict[i]