Ajout C3.tex + C3.pdf
This commit is contained in:
parent
bdc7ff7d13
commit
4c85f09c74
49 changed files with 860 additions and 0 deletions
12
C3/codes/q32_33.py
Normal file
12
C3/codes/q32_33.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
def somme(notes):
|
||||
return notes['NSI'] + notes['maths'] + notes['physique']
|
||||
|
||||
def plusPetit(n1, n2):
|
||||
if n1['NSI'] < n2['NSI']:
|
||||
return True
|
||||
if n1['NSI'] == n2['NSI']:
|
||||
if somme(n1) < somme(n2):
|
||||
return True
|
||||
elif somme(n1) == somme(n2) and n1['nom'] < n2['nom']:
|
||||
return True
|
||||
return False
|
||||
Loading…
Add table
Add a link
Reference in a new issue