Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 391 Bytes

File metadata and controls

24 lines (15 loc) · 391 Bytes

Pattern: Use of multiple statements on one line (:)

Issue: -

Description

Multiple statements should be on their own separate lines. This improves readability.

Example of incorrect code:

if x > 5: y = 10

Example of correct code:

if x > 5:
    y = 10

Further Reading