if statement - python. if var == False -


in python can write if statement follows

var = true if var:     print 'i\'m here' 

is there way opposite without ==, eg

var = false if !var:     print 'learnt stuff' 

use not

var = false if not var: print 'learnt stuff' 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -