Multiple statements on one line (colon) (E701)
Multiple statements should be on their own separate lines. This improves readability.
Anti-pattern
if x > 5: y = 10
Best practice
if x > 5:
y = 10
Multiple statements should be on their own separate lines. This improves readability.
if x > 5: y = 10
if x > 5:
y = 10