0 out of 464 challenges solved

Check No Profit No Loss

Write a Python function `noprofit_noloss(actual_cost, sale_amount)` that checks whether a transaction results in no profit and no loss. The function should return `True` if the `sale_amount` is equal to the `actual_cost`, and `False` otherwise.

#### Example Usage
```python [main.nopy]
print(noprofit_noloss(1500, 1200))  # Output: False
print(noprofit_noloss(100, 100))    # Output: True
print(noprofit_noloss(2000, 5000))  # Output: False
```

#### Constraints
- Both `actual_cost` and `sale_amount` are non-negative integers.
def noprofit_noloss(actual_cost, sale_amount):
    """
    Check if the sale results in no profit and no loss.

    Parameters:
    actual_cost (int): The actual cost of the item.
    sale_amount (int): The sale amount of the item.

    Returns:
    bool: True if no profit and no loss, False otherwise.
    """
    # Compare actual_cost and sale_amount
    pass  # Replace this with your implementation