python if not : I can use logical not operator with Python Example IF condition. The statements inside if block code execute only if the value(boolean) is False or if the value(collection) is not blank.
flag = False
if not flag:
print('flag is false.')
Program
flag = ''
if not flag:
print('String is blank.')
else:
print(flag)