nonetype in python checl code example
Example 1: python 2.7 check if variable is none
>>> NoneType = type(None)
>>> x = None
>>> type(x) == NoneType
True
>>> isinstance(x, NoneType)
True
Example 2: test if object is NoneType python
if variable is None: