{"id":1636,"date":"2025-09-21T05:06:00","date_gmt":"2025-09-21T03:06:00","guid":{"rendered":"http:\/\/labodemaths.fr\/WordPress3\/?p=1636"},"modified":"2025-09-22T07:45:19","modified_gmt":"2025-09-22T05:45:19","slug":"nsi2021-2022-lecon-n2","status":"publish","type":"post","link":"https:\/\/labodemaths.fr\/WordPress3\/nsi2021-2022-lecon-n2\/","title":{"rendered":"NSI,2025-2026, Le\u00e7on n\u00b02, conversions suite"},"content":{"rendered":"\n<div class=\"wp-block-file\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2021\/10\/Lec\u0327on-n\u00b02-Codage-binaire-et-codage-hexade\u0301cimalcalcul-en-binaire.pdf\">Lec\u0327on-n\u00b02-Codage-binaire-et-codage-hexade\u0301cimalcalcul-en-binaire<\/a><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2021\/10\/Lec\u0327on-n\u00b02-Codage-binaire-et-codage-hexade\u0301cimalcalcul-en-binaire.pdf\" class=\"wp-block-file__button\" download>T\u00e9l\u00e9charger<\/a><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code># petit programme pour s'entra\u00eener\n\nimport random\nnbre_alea=random.randint(0,256)\nprint(\"Convertir en binaire \"+str(nbre_alea))\nreponse=input(\"Votre proposition ?\")\nif reponse==bin(nbre_alea):\n    print(\"Bravo\")\nelse :\n    print(\"D\u00e9sol\u00e9, la r\u00e9ponse \u00e9tait\")\n    print(bin(nbre_alea))\n    \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":1638,"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\/1636"}],"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=1636"}],"version-history":[{"count":4,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/1636\/revisions"}],"predecessor-version":[{"id":2868,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/1636\/revisions\/2868"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media\/1638"}],"wp:attachment":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media?parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/categories?post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/tags?post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}