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

7 lines
98 B
Python
Raw Permalink Normal View History

2023-03-30 16:42:50 +00:00
def mystere(T):
s = 0
for k in T:
if k % 2 == 0:
s = s+k
return s