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

php - cannot display multiple markers in google maps v3 from traceroute result -

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

javascript - firefox memory leak -