SyntaxFix
Write A Post
Hire A Developer
Questions
You could split it into two lines
total = cond1 == 'val' and cond2 == 'val2' and cond3 == 'val3' and cond4 == val4 if total: do_something()
Or even add on one condition at a time. That way, at least it separates the clutter from the if.
if