SyntaxFix
Write A Post
Hire A Developer
Questions
If c is a set then you can check whether it's empty by doing: return not c.
c
return not c
If c is empty then not c will be True.
not c
True
Otherwise, if c contains any elements not c will be False.
False