Apr-30-2021, 01:03 PM
(Apr-25-2021, 03:22 PM)stereokim123 Wrote:write your own code and I will help you dudedef fruit(melon, pear) : ( ) return result print(fruit(10, 5)) print(fruit(6, 4))hey guys, i'm trying to make a calculation for a fruit store.
Below is the given information:
Price of melon is 1000 and peark is 3000
if you buy more than 10 melon you get a 50%discount on pear.
Could you tell me the code that I should put in between ()? without making any changes on the given code. Thanks