Apr-25-2021, 03:22 PM
(This post was last modified: Apr-25-2021, 03:29 PM by Yoriz.
Edit Reason: Added code tags
)
def 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