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