Search This Blog

Sunday, March 16, 2014


None is :

  • a special constant in python
  • a null value
  • of datatype NoneType

None is not:

  • 0
  • is not an empty string
  • is not the same as False

You can:

  • compare None to anything other than None always returns False.
  • assign None to any variable
You cannot create other NoneType objects. All variables with a value of None are equal to each other.

No comments:

Post a Comment