Exemplo de código de verificação se uma variável não estiver usando == Operador
# Declaring a None variable
var = None
if var == None: # Checking if the variable is None
print("None")
else:
print("Not None")
Outrageous Ostrich