{"id":270,"date":"2026-01-28T17:52:08","date_gmt":"2026-01-28T16:52:08","guid":{"rendered":"https:\/\/yb-isn.fr\/2025\/nsi\/?p=270"},"modified":"2026-01-28T19:12:20","modified_gmt":"2026-01-28T18:12:20","slug":"270","status":"publish","type":"post","link":"https:\/\/yb-isn.fr\/2025\/nsi\/2026\/01\/28\/270\/","title":{"rendered":"26-listes tuples et dictionnaires"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Liste<\/strong> = \u201cune suite qui change\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tuple<\/strong> = \u201cune suite fixe\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Dict<\/strong> = \u201cune correspondance cl\u00e9 \u2192 valeur\u201d<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-background has-link-color wp-elements-0fe2ee83547f4786211fdb27d4b9597c wp-block-paragraph\" style=\"background:linear-gradient(135deg,rgb(216,244,179) 0%,rgb(17,184,81) 100%)\">Activit\u00e9 de traduction <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/capytale2.ac-paris.fr\/web\/c\/c997-9355548\">https:\/\/capytale2.ac-paris.fr\/web\/c\/c997-9355548<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">es&nbsp;<strong>listes<\/strong>, les&nbsp;<strong>dictionnaires<\/strong>&nbsp;et les&nbsp;<strong>tuples<\/strong>&nbsp;sont des objets qui peuvent contenir des collections d\u2019autres objets.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>listes<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">jours_fr = [\u00ab\u00a0lundi\u00a0\u00bb, \u00ab\u00a0mardi\u00a0\u00bb, \u00ab\u00a0mercredi\u00a0\u00bb, \u00ab\u00a0jeudi\u00a0\u00bb, \u00ab\u00a0vendredi\u00a0\u00bb, \u00ab\u00a0samedi\u00a0\u00bb, \u00ab\u00a0dimanche\u00a0\u00bb]<br>jours_en = [\u00ab\u00a0monday\u00a0\u00bb, \u00ab\u00a0tuesday\u00a0\u00bb, \u00ab\u00a0wednesday\u00a0\u00bb, \u00ab\u00a0thursday\u00a0\u00bb, \u00ab\u00a0friday\u00a0\u00bb, \u00ab\u00a0saturday\u00a0\u00bb, \u00ab\u00a0sunday\u00a0\u00bb]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tuples<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">jours_fr_t = (\u00ab\u00a0lundi\u00a0\u00bb, \u00ab\u00a0mardi\u00a0\u00bb, \u00ab\u00a0mercredi\u00a0\u00bb, \u00ab\u00a0jeudi\u00a0\u00bb, \u00ab\u00a0vendredi\u00a0\u00bb, \u00ab\u00a0samedi\u00a0\u00bb, \u00ab\u00a0dimanche\u00a0\u00bb)<br>jours_en_t = (\u00ab\u00a0monday\u00a0\u00bb, \u00ab\u00a0tuesday\u00a0\u00bb, \u00ab\u00a0wednesday\u00a0\u00bb, \u00ab\u00a0thursday\u00a0\u00bb, \u00ab\u00a0friday\u00a0\u00bb, \u00ab\u00a0saturday\u00a0\u00bb, \u00ab\u00a0sunday\u00a0\u00bb)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Dictionnaire<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TRAD_JOURS = {<br>\u00ab\u00a0lundi\u00a0\u00bb: \u00ab\u00a0monday\u00a0\u00bb,<br>\u00ab\u00a0mardi\u00a0\u00bb: \u00ab\u00a0tuesday\u00a0\u00bb,<br>\u00ab\u00a0mercredi\u00a0\u00bb: \u00ab\u00a0wednesday\u00a0\u00bb,<br>\u00ab\u00a0jeudi\u00a0\u00bb: \u00ab\u00a0thursday\u00a0\u00bb,<br>\u00ab\u00a0vendredi\u00a0\u00bb: \u00ab\u00a0friday\u00a0\u00bb,<br>\u00ab\u00a0samedi\u00a0\u00bb: \u00ab\u00a0saturday\u00a0\u00bb,<br>\u00ab\u00a0dimanche\u00a0\u00bb: \u00ab\u00a0sunday\u00a0\u00bb,<br>}<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-background has-link-color wp-elements-c60501200158ae164146ba27d043e495 wp-block-paragraph\" style=\"background:linear-gradient(135deg,rgb(216,244,179) 0%,rgb(17,184,81) 100%)\">Pour aller plus loin<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.w3schools.com\/python\/python_tuples.asp\">https:\/\/www.w3schools.com\/python\/python_tuples.asp<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Les Tup<strong>les<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Les dictionnaires<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.w3schools.com\/python\/python_dictionaries.asp\">https:\/\/www.w3schools.com\/python\/python_dictionaries.asp<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Les listes python (rappels si n\u00e9cessaire)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.w3schools.com\/python\/python_lists.asp\">https:\/\/www.w3schools.com\/python\/python_lists.asp<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Liste = \u201cune suite qui change\u201d Tuple = \u201cune suite fixe\u201d Dict = \u201cune correspondance cl\u00e9 \u2192 valeur\u201d Activit\u00e9 de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":8,"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/posts\/270\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yb-isn.fr\/2025\/nsi\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}