''' Functions can use multiple return statements using if-else statements, the first return encountered will be the value returned from the function. For example: def function(x): if x >= : return ... elif x >= : return ... elif x >= : return ... return ... Exercise A: In this exercise, you are calculating the total price after applying discounts. In this case the store has different applicable discounts for increasing totals: * 20% off from 50 euros * 30% off from 100 euros * 50% off from 200 euros Implement function `calculate_discount` that returns the discounted price based on the price before discount. Test your function by passing the following values to it: 100, 70, 250, 30, -10 ''' # Your code here ''' Exercise B: Sometimes the website does not work correctly for the store and the price before discount ends up being negative. This should not happen, so we would like the function to throw an error if the total is negative. ''' # Your code here # If the code was altered correctly this code line should give an error print("Total = ", calculate_discount(-3))