2022-2023/1NSI/Evaluations/DS_2023-05-22/scripts/qcm_maxi.py

12 lines
224 B
Python
Raw Normal View History

2023-05-19 12:26:07 +00:00
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)
]