Ajout C3.tex + C3.pdf

This commit is contained in:
divingeek 2025-08-26 18:58:56 +02:00
parent bdc7ff7d13
commit 4c85f09c74
49 changed files with 860 additions and 0 deletions

10
C3/codes/q14_11.py Normal file
View file

@ -0,0 +1,10 @@
def ajoute(stock,element,quantite):
if element in stock:
stock[element] = stock[element] + quantite
else:
stock[element] = quantite
stock = { 'clous': 14, 'vis': 27, 'boulons': 8,
'écrous': 24 }
ajoute(stock,'vis',5)
ajoute(stock,'chevilles',3)