Ajout C3.tex + C3.pdf
This commit is contained in:
parent
bdc7ff7d13
commit
4c85f09c74
49 changed files with 860 additions and 0 deletions
10
C3/codes/q14_11.py
Normal file
10
C3/codes/q14_11.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue