To determine the output of the provided code, we can analyze the discount_on_weekdays
function. The function takes a day and an amount as arguments, then calculates the discount based on the specified day:
- For 'Monday', a 10% discount is applied.
- For 'Tuesday', a 20% discount is applied.
- For 'Wednesday', a 30% discount is applied.
- For 'Thursday', a 50% discount is applied.
- For 'Friday', a 60% discount is applied.
In the code, the function is called with the arguments 'Friday'
and 3000
.
Calculating the discount for Friday:
- Discount = 0.6 * 3000 = 1800.0
Therefore, when the line print(f'Discount is {disc}')
is executed, it will print:
Discount is 1800.0.
The correct response is: The output will be “Discount is 1800.0.”