{"assignment_id":"mean","func_name":"moyenne","reference_solution":"def moyenne(liste):\n\tif len(liste)==0:\n\t\tres=None\n\telse:\n\t\tres=0\n\t\tfor elem in liste:\n\t\t\tres+=elem\n\t\tres=res\/len(liste)\n\treturn res\n","description":"Return the mean of a list of numbers.","test":"assert moyenne([5, 15])==10.0 and moyenne([-6, -4, -2, 0])==-3.0 and moyenne([])==None and moyenne([])==None and moyenne([12, 1, 25, 7])==11.25 and moyenne([-3, 7, 18, -12])==2.5 and moyenne([-12, -1, -25, -7])==-11.25"} {"assignment_id":"minimum","func_name":"minimum","reference_solution":"def minimum(liste):\n if len(liste)==0:\n return None\n res=liste[0]\n for i in range(1,len(liste)):\n if liste[i]res:\n res=liste[i]\n return res\n","description":"Return the maximum element in a list of numbers.","test":"assert maximum([12, 1, 25, 7])==25 and maximum([-3, 7, 18, -12])==18 and maximum([-12, -1, -25, -7])==-1 and maximum([])==None and maximum([])==None"} {"assignment_id":"sum","func_name":"somme","reference_solution":"def somme(liste):\n res=0\n for elem in liste:\n\t res=res+elem\n return res\n","description":"Return the sum of the elements in a list.","test":"assert somme([12, 1, 25, 7])==45 and somme([-3, 7, 18, -12])==10 and somme([-12, -1, -25, -7])==-45 and somme([])==0"} {"assignment_id":"decreasing_list","func_name":"listeDecroissante","reference_solution":"def listeDecroissante(scores):#exo2\n \"\"\"renvoie True si la liste est tri\u00e9e dans l'ordre d\u00e9croissant (False sinon)\"\"\"\n ok=True\n i=0\n while i