function/method assigment

7stud bbxx789_05ss at yahoo.com
Fri Apr 13 16:45:50 EDT 2007


On Apr 13, 10:14 am, viscr... at gmail.com wrote:
> what is the
> meaning of 'None'?
>

It's a value just like any other python value: 2, 7.5, "red", and it
evaluates to false in a conditional:

my_var = None

if not my_var:
    print "bad data"




More information about the Python-list mailing list