Vérifiez si la variable est vide Python
if variable:
# code goes here...
IllegalBeagle123
if variable:
# code goes here...
if x:
print(x)
else:
print(x is empty)