New Python Expression (for me) :P

1. >>> if 2 <= len(something) <= 3: oppp



2. >>> var1 = var2 if condition true else var 3
It means
> IF condition true:
var1 = var2
ELSE:
var1 = var3

oh man , just like ruby syntax or ruby like this :P

Comments

Popular posts from this blog

Changing postgres password and warning