Feat(NSI): QCM pour le DS5

This commit is contained in:
2023-05-19 14:26:07 +02:00
parent cb212ba6bf
commit 811f41d93d
5 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
t = [ {'id':1, 'age':23, 'sejour':'PEKIN'}, {'id':2, 'age':27, 'sejour':'ISTANBUL'},
{'id':3, 'age':53, 'sejour':'LONDRES'}, {'id':4, 'age':41, 'sejour':'ISTANBUL'},
{'id':5, 'age':62, 'sejour':'RIO'}, {'id':6, 'age':28, 'sejour':'ALGER'}]

View File

@@ -0,0 +1,11 @@
def maxi(t):
m = t[0]
for x in t:
if x[1] >= m[1]:
m = x
return m
L = [ ('Alice', 17), ('Barnabé', 17),
('Casimir', 17), ('Doriane', 17),
('Emilien', 14), ('Fabienne', 16)
]