[Tutor] use the data None
Tehn Yit Chin
tehn.yit.chin at gmail.com
Sun Jun 3 23:43:30 CEST 2012
Hi all,
I am trying to understand when it is appropriate to use None as in the
following example
if abc != None:
print "abc is not None"
1) Can I use it to determine if the variable abc exists?
2) Can I use it to determine if the variable abc does not contain anything?
Many thanks
--
Tehn Yit Chin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120603/bf5068f1/attachment.html>
More information about the Tutor
mailing list