Python sprawdzanie nonetpe

if variable is None:
  # do your stuff
Marc Tolkmitt