Skip to content

Bug Report for python-if #4694

@moon-jal

Description

@moon-jal

Bug Report for https://neetcode.io/problems/python-if

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

def is_balance_low(balance: int) -> None:
if balance <= 100:
balance = str(balance)
print (balance + ":" + "Warning: Low balance.")

The if Statement in your solution doesn't provide any information - for which balance values it is providing the Low balance responses. In our case it should provide the following responses:

Output :
99:Warning: Low balance.
100:Warning: Low balance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions