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
Post a Comment