Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
thanks 2precis3! was searching for the same thing:))))
I don't know what language that you currently use now, but I can give you a hint for Python.
I hope it help!
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
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