7 lines
No EOL
187 B
Python
7 lines
No EOL
187 B
Python
inventaire = {'pommes': 430, 'bananes': 312,'oranges' : 274,
|
|
'poires' : 137}
|
|
|
|
stock = 0
|
|
for fruit in inventaire.keys():
|
|
if fruit != 'bananes':
|
|
stock = stock + inventaire[fruit] |