Python null Function
Python use None
to represent null, or "Noneness".
>>> x = None#x = null >>> x is None
True
>>> x = None >>> for x in range(1,5): >>> print(x)
1 2 3 4
String can be represented by "":
>>> x = ""
Python use None
to represent null, or "Noneness".
>>> x = None#x = null >>> x is None
True
>>> x = None >>> for x in range(1,5): >>> print(x)
1 2 3 4
>>> x = ""