pylint-errors

E0104 (return-outside-function)

:x: Problematic code:

username = input()
if username:
    return f'Username: {username}'

:heavy_check_mark: Correct code:

def get_user(value):
    return f'Username: {value}'


get_user(input())

Rationale:

Used when a return statement is found outside a function or method.