pylint-errors

R5501 (else-if-used)

:x: Problematic code:

if input():
    pass
else:
    if len(input()) >= 10:
        pass
    else:
        pass

:heavy_check_mark: Correct code:

if input():
    pass
elif len(input()) >= 10:
    pass
else:
    pass

Rationale:

Used when an else statement is immediately followed by an if statement and does not contain statements that would be unrelated to it.