I am seriously under-slept and I need help in rewriting this small Python piece of logic
for _ in range(100):
if a:
continue
elif b:
continue
elif c and d:
continue
else:
e()
I want to have something like
if (some_exprt of a,b,c,d):
e()
What I got is:
if not a and not b and (not c or not d):
e()
but I really can't tell if this is correct or not, am I right?