{"id":2308,"date":"2025-09-14T08:45:00","date_gmt":"2025-09-14T06:45:00","guid":{"rendered":"https:\/\/labodemaths.fr\/WordPress3\/?p=2308"},"modified":"2025-09-16T08:13:13","modified_gmt":"2025-09-16T06:13:13","slug":"nsi2023-2024-tp3-suite-de-conway","status":"publish","type":"post","link":"https:\/\/labodemaths.fr\/WordPress3\/nsi2023-2024-tp3-suite-de-conway\/","title":{"rendered":"NSI,TP2 : suite de Conway"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"John Conway - Deux (deux ?) minutes pour...\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/9Hpy6MKM-J8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>TP sur les suites de conway :<\/p>\n\n\n\n<p>Compl\u00e9ter les fonctions suivantes<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def compte(nombre,chiffre):\n    '''\n    retoune le nombre de fois o\u00f9 est pr\u00e9sent\n    le chiffre dans le nombre\n    : nombre, chiffre : int\n    : retour : entier\n    >>>compte(1231,1)\n    2\n    >>>compte(1231,5)\n    0\n    '''\n    \ndef terme_suivant_conway(nombre)\n    '''\n    >>>terme_suivant_conway(211213)\n    312213\n    '''\n   <\/code><\/pre>\n\n\n\n<p>proposition de correction<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def compte(nombre,chiffre):\r\n    '''\r\n    retoune le nombre de fois o\u00f9 est pr\u00e9sent\r\n    le chiffre dans le nombre\r\n    : nombre, chiffre : int\r\n    : retour : entier\r\n    >>>compte(1231,1)\r\n    2\r\n    >>>compte(1231,5)\r\n    0\r\n    '''\r\n    nombre_texte=str(nombre)\r\n    chiffre_texte=str(chiffre)\r\n    compteur=0\r\n    for caractere in nombre_texte:\r\n        if caractere==chiffre_texte:\r\n            compteur+=1\r\n    return compteur\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TP sur les suites de conway : Compl\u00e9ter les fonctions suivantes proposition de correction<\/p>\n","protected":false},"author":2,"featured_media":2316,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[57,1],"tags":[],"_links":{"self":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2308"}],"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=2308"}],"version-history":[{"count":10,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2308\/revisions"}],"predecessor-version":[{"id":2865,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2308\/revisions\/2865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media\/2316"}],"wp:attachment":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media?parent=2308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/categories?post=2308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/tags?post=2308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}