ConvertQCM/C3/codes/q7_2.py
2025-08-26 18:58:56 +02:00

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]