You need to update the given products_list. If the price is greater than 30, you need to set a discount = 25%.

  1. Set the for loop to work with products_list.
  2. Set the condition if the price is greater than 30.
  3. Use list.append(element) to add an element to the upd_list.
  4. Set the discount to an element (price), if the price is greater than 30 by multiplying by 0.75.
  5. Use round(element, value) to round the price to the 00.00 format.
  6. If an element is lower or equal to 30 (else part), add an element without a discount to the upd_list.
  7. Print an updated list.

Everything was clear?

Section 1. Chapter 9
toggle bottom row