SyntaxFix
Write A Post
Hire A Developer
Questions
I just wanted to know if the dictionary i was going to try to pull data from had data in it in the first place, this seems to be simplest way.
d = {} bool(d) #should return False d = {'hello':'world'} bool(d) #should return True