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

12
C3/codes/q32_33.py Normal file
View 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