SyntaxFix
Write A Post
Hire A Developer
Questions
For dict, just use
if key in dict
and don't use searching in key list
if key in dict.keys()
The latter will be more time-consuming.