Ad
  • Custom User Avatar

    FYI: Yoo don't need the parentheses in the if statement:

    if _name == name and _password == password:
    

    and instead of

    if condition:
        return True
    else:
        return False
    

    you can write

    return condition
    

    or (if condition is bool-ish and you must return a boolean)

    return bool(condition)