SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
if l[i]: print 'Found element!' else: print 'Empty element.'