{"id":2271,"date":"2023-05-05T13:58:15","date_gmt":"2023-05-05T11:58:15","guid":{"rendered":"https:\/\/labodemaths.fr\/WordPress3\/?p=2271"},"modified":"2023-05-05T13:58:17","modified_gmt":"2023-05-05T11:58:17","slug":"nsirevisions-listes","status":"publish","type":"post","link":"https:\/\/labodemaths.fr\/WordPress3\/nsirevisions-listes\/","title":{"rendered":"NSI,Revisions listes"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>spe_nsi=&#91;12,12,12,19,17,18,19,20,\r\n         19,15,7,19,13,12,12,10,20,\r\n         18,18,10,18,16,20,19,18,20,\r\n         9,13,18,6,8,7,14,16,12]\r\nspe=&#91;8,6,17,8,6,9,12,10,13,2,9,18,9,6,9,4,15,\r\n     8,5,6,14,13,13,9,14,15,12,7,16,4,10,2,13,8,11]\r\n\ndef note_moyenne(liste):\r\n    somme=0\r\n    compteur=0\r\n    for note in liste:\r\n        somme+=note\r\n        compteur+=1\r\n    return somme\/compteur\r\n    \r\ndef pourcentage_moins_de_dix(liste):\r\n    compteur=0\r\n    for note in liste:\r\n        if note&lt;10:\r\n            compteur+=1\r\n    return compteur\/len(liste)*100\r\n\r\ndef moyenne_spes(liste1,liste2):\r\n    liste=&#91;]\r\n    for i in range(len(liste1)):\r\n        note=(liste1&#91;i]+liste2&#91;i])\/2\r\n        liste.append(note)\r\n    return liste\r\n  <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":2272,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[57],"tags":[],"_links":{"self":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2271"}],"collection":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/comments?post=2271"}],"version-history":[{"count":1,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2271\/revisions"}],"predecessor-version":[{"id":2273,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2271\/revisions\/2273"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media\/2272"}],"wp:attachment":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media?parent=2271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/categories?post=2271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/tags?post=2271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}