{"id":2429,"date":"2024-03-15T14:12:41","date_gmt":"2024-03-15T13:12:41","guid":{"rendered":"https:\/\/labodemaths.fr\/WordPress3\/?p=2429"},"modified":"2024-03-15T14:35:53","modified_gmt":"2024-03-15T13:35:53","slug":"nsi2023-2024-banque-des-sujets-epreuve-pratique","status":"publish","type":"post","link":"https:\/\/labodemaths.fr\/WordPress3\/nsi2023-2024-banque-des-sujets-epreuve-pratique\/","title":{"rendered":"NSI,2023-2024, tp rangement"},"content":{"rendered":"\n<p>La correction du tp :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def echange(tab,i,j):\n    '''\n    &gt;&gt;&gt;echange(&#91;1,2,3,4],0,2)\n    &#91;3,2,1,4]\n    '''\n    tab&#91;i],tab&#91;j]=tab&#91;j],tab&#91;i]\n    return tab\n\ndef rangement1(tab):\n    liste_0=&#91;0 for i in range(tab.count(0))]\n    liste_1=&#91;1 for i in range(tab.count(1))]\n    return liste_0+liste_1\n\ndef rangement2(tab):\n    liste_0=&#91;]\n    liste_1=&#91;]\n    for val in tab:\n        if val==0:\n            liste_0.append(0)\n        else:\n            liste_1.append(1)\n    return liste_0+liste_1\n    \n    \n    \n    \n    \n    \n<\/code><\/pre>\n\n\n\n<p>Banque des sujets des \u00e9preuves pratiques<\/p>\n\n\n\n<p><a href=\"https:\/\/cyclades.education.gouv.fr\/delos\/public\/listPublicECE\">https:\/\/cyclades.education.gouv.fr\/delos\/public\/listPublicECE<\/a><\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2024\/03\/24-NSI-25.pdf\">24-NSI-25<\/a><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2024\/03\/24-NSI-25.pdf\" class=\"wp-block-file__button\" download>T\u00e9l\u00e9charger<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>La correction du tp : Banque des sujets des \u00e9preuves pratiques https:\/\/cyclades.education.gouv.fr\/delos\/public\/listPublicECE<\/p>\n","protected":false},"author":2,"featured_media":1956,"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\/2429"}],"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=2429"}],"version-history":[{"count":3,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2429\/revisions"}],"predecessor-version":[{"id":2433,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2429\/revisions\/2433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media\/1956"}],"wp:attachment":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media?parent=2429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/categories?post=2429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/tags?post=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}