SyntaxFix
Write A Post
Hire A Developer
Questions
Python uses not instead of ! for negation.
not
!
Try
if not var: print "learnt stuff"
instead