Ad
  • Default User Avatar

    thanks 2precis3! was searching for the same thing:))))

  • Custom User Avatar

    I don't know what language that you currently use now, but I can give you a hint for Python.

    Google *args python.

    I hope it help!

  • Custom User Avatar

    What bonus? We'r calculating the total cost of mangoes. The offer is that for every 3 mangoes you buy, you only pay the price of 2.
    Each mango cost £3 => if you buy 2 mangoes it will £6
    If you were to buy 3 mangoes at £3 each, the total price is still £6.
    4 mangoes at £3 each => total price = £9 and so on.
    Let me know if this makes sense

  • Custom User Avatar

    I just checked the test cases again and they're fine. You might want to check your code again.
    3rd test case: quantity is 2 and price is 3 => total price = 6
    4th test case: quanity is 7 and price is 3 => total price = 15