Use the code to answer the question. %0D%0A%0D%0Adef discount_on_voucher(voucher, amount): %0D%0A discount = 0 %0D%0A if voucher == 'Flat 50': %0D%0A discount = 0.5 * amount %0D%0A elif voucher == 'Flat 30': %0D%0A discount = 0.3 * amount %0D%0A elif voucher == 'Flat 20': %0D%0A discount = 0.2 * amount %0D%0A return discount %0D%0A%0D%0Adisc = discount_on_voucher('Flat 75', 1000) %0D%0Aprint(f'Discount is {disc}') %0D%0AWhat will be the output of the code? Execute your code using the Trinket. %0D%0A%0D%0ATrinket%0D%0A%0D%0A(1 point)%0D%0AResponses%0D%0A%0D%0AThe output will be “Discount is 0.”%0D%0AThe output will be “Discount is 0.”%0D%0A%0D%0AThe output will be “Discount is 150.”%0D%0AThe output will be “Discount is 150.”%0D%0A%0D%0AThe output will be “Discount of 1000.”%0D%0AThe output will be “Discount of 1000.”%0D%0A%0D%0AThe output will be “Discount is 200.”%0D%0AThe output will be “Discount is 200.”

The correct answer is: The output will be “Discount is 0.”

The output of the code will be "Discount is 0."

To determine the output of the given code, let's analyze it step by step:

1. The code defines a function named `discount_on_voucher` that takes two parameters: `voucher` and `amount`.

2. It initializes a variable `discount` to 0.

3. It checks the value of the `voucher` parameter using an `if-elif-else` statement:

a. If `voucher` is equal to `'Flat 50'`, it calculates the discount as `0.5 * amount`.

b. If `voucher` is equal to `'Flat 30'`, it calculates the discount as `0.3 * amount`.

c. If `voucher` is equal to `'Flat 20'`, it calculates the discount as `0.2 * amount`.

d. If none of the above conditions are satisfied, the discount remains 0.

4. The function returns the computed discount.

5. The code outside the function calls the `discount_on_voucher` function with `'Flat 75'` as the `voucher` parameter and `1000` as the `amount` parameter. The result is assigned to the variable `disc`.

6. Finally, the code prints the output string `Discount is {disc}`, where `{disc}` is the value of the `disc` variable.

Based on the given code, the condition `voucher == 'Flat 75'` does not match any of the `if-elif` conditions, which means the discount remains 0. Therefore, the output will be "Discount is 0."

To execute the code and verify the output, you can use an online Python editor or an IDE like Trinket. Simply copy the code into the editor, run it, and observe the output.