First page Back Continue Last page Overview Image

Aufgabe

Supermarket

{

'milk': {'quantity': 5, 'price': 1.19}, 'biscuits': {'quantity': 13, 'price': 1.45}, 'butter': {'quantity': 20, 'price': 2.29}, 'cheese': {'quantity': 15, 'price': 1.9},

'bread': {'quantity': 10, 'price': 1.29}

}

Shopping Lists:

Frank: [('cheese', 4), ('milk', 3), ('oranges', 1), ('apples', 1), ('bananas', 4), ('yogurt', 1), ('cookies', 2), ('bread', 4), ('butter', 3), ('biscuits', 2)]

Mary: [('oranges', 2), ('butter', 2), ('bananas', 4), ('apples', 1), ('cookies', 2), ('biscuits', 1), ('yogurt', 4)]

Paul: [('bread', 3), ('cheese', 3), ('milk', 3), ('cookies', 4), ('bananas', 1), ('oranges', 4)]

Jennifer: [('milk', 4), ('biscuits', 4), ('butter', 3), ('apples', 3)]

Lösung: https://www.python-course.eu/material/course/programs/supermarket.py