1. Imagine an accounting routine used in a book shop.
It works on a list with sub lists,
which look like this:
Order Price per
Book Title and Author Quantity
Number Item
34587 Learning Python, Mark Lutz 4 40.95
98762 Programming Python, Mark Lutz 5 56.80
77226 Head First Python, Paul Barry 3 32.95
Einführung in Python3, Bernd
88112 3 24.99
Klein
Write a Python program, which returns a list with 2-tuples. Each tuple consists of a
the order number and the product of the price per items and the quantity. The product
should be increased by 10,- € if the value of the order is smaller than 100,00 €. Write
a Python program using lambda and map.
2. The same bookshop, but this time we work on a different list. The sublists of our lists
look like this: [ordernumber, (article number, quantity, price per unit), ... (article
number, quantity, price per unit) ] Write a program which returns a list of two tuples
with (order number, total amount of order).