Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 541 Bytes

File metadata and controls

29 lines (18 loc) · 541 Bytes

Pattern: Use of over-indented code

Issue: -

Description

Code should have consistent indentation, typically spaced out in increments of two or four.

Example of incorrect code:

The print function on the following line is indented at five spaces instead of four.

if True:
     print('Hi there')

Example of correct code:

The code is now spaced out at four spaces instead of five.

if True:
    print('Hi there')

Further Reading