Hi all. I know that in Python we can write an if block by using the following piece of code:
var = True
if var:
print 'Hello Edureka'
But what I really want to know is that, if there is a way which involves doing the opposite, i.e making use of the statement without using the ==
Let me give you an example:
var = False
if !var:
print 'learnt stuff'
How can I go about doing this? What am I missing here?
All help appreciated!