2022-2023/1NSI/Evaluations/DS_2023-03-31/annexes/QCM_maxi.py
Bertrand Benjamin cd31d3293c
All checks were successful
continuous-integration/drone/push Build is passing
Feat(NSI): fait le DS4
2023-03-30 18:43:16 +02:00

10 lines
193 B
Python

def maxi(L):
dernier_indice = len(L) - 1
valeur_max = L[0]
for i in range(1,dernier_indice):
if L[i] > valeur_max:
valeur_max = liste[i]
return valeur_max