SyntaxFix
Write A Post
Hire A Developer
Questions
list(newdict) works in both Python 2 and Python 3, providing a simple list of the keys in newdict. keys() isn't necessary. (:
list(newdict)
newdict
keys()