a='1'
b='Apple'
c='Banana'
d='Some thing'
e=''
f=''
if (a and b and c !='') or (d and e and f !=''):
print("OKAY")
else:
print("Not OKAY")
As of my example code it is printing okay. But it should be print Okay either both d,e and f are should be empty or both should not to be empty. For example if a,b and c are not empty and d,e and f are empty then it should be print "okay". And a, b, c are not empty and d is not empty, e and f are empty so in this case it should print "not OKAY". Or if ab and c are not empty and d, e and f are also not empty then it should be print "OKAY". How to do. I don't have an practical idea that's why i could not given an example.