Python-Ref > Basic usage > Types > None
 
 

<-^^
Klíčová slova
Moduly
Knihovní funkce

None

A special value that is used to signify non-presence of any value at all is None. A variable that has value of None has not value. It is useful to mark uninitialized values, for instance such that the user did not fill yet, or that were not computed yet.
Expand/Shrink
Zdroj: (types4-1.py)
  1   x = None
  2   
  3   print x == 1        # None is not a number
  4   print x == "None"   # not a string
  5   print x == 0        # not even a zero number
  6   print x == None     # it is simply None
stdout:
False
False
False
True
Doba běhu: 20.7 ms