2022-2023/1NSI/Evaluations/DS_2023-03-31/annexes/QCM_somme.py

7 lines
98 B
Python

def mystere(T):
s = 0
for k in T:
if k % 2 == 0:
s = s+k
return s