{"id":390,"date":"2018-01-10T17:41:05","date_gmt":"2018-01-10T16:41:05","guid":{"rendered":"http:\/\/labodemaths.fr\/WordPress3\/?p=390"},"modified":"2018-01-11T23:20:45","modified_gmt":"2018-01-11T22:20:45","slug":"deplacement-aleatoire-avec-python-et-turtle","status":"publish","type":"post","link":"https:\/\/labodemaths.fr\/WordPress3\/deplacement-aleatoire-avec-python-et-turtle\/","title":{"rendered":"D\u00e9placement al\u00e9atoire avec Python et Turtle"},"content":{"rendered":"<p>Pour simuler le d\u00e9placement dynamique d&rsquo;un objet en Python, on peut utiliser la biblioth\u00e8que Turtle de Python.<br \/>\nUn exemple d&rsquo;utilisation en 1\u00b0S sur le site Trinket :<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/trinket.io\/embed\/python\/d53573272d\" width=\"100%\" height=\"600\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><a href=\"https:\/\/trinket.io\/python\/d53573272d\" target=\"_blank\" rel=\"noopener\">Le programme<\/a><\/p>\n<p>Apr\u00e8s avoir test\u00e9 plusieurs fois le programme, je suis arriv\u00e9 \u00e0 ce r\u00e9sultat :<\/p>\n<p><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2018\/01\/incroyable.jpeg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-394\" src=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2018\/01\/incroyable-300x167.jpeg\" alt=\"\" width=\"300\" height=\"167\" srcset=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2018\/01\/incroyable-300x167.jpeg 300w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2018\/01\/incroyable-768x427.jpeg 768w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2018\/01\/incroyable-1024x570.jpeg 1024w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2018\/01\/incroyable.jpeg 1071w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Quelle \u00e9tait la probabilit\u00e9 d&rsquo;obtenir cette s\u00e9rie de 10 d\u00e9placements ?<\/p>\n<p><a href=\"https:\/\/trinket.io\/python\/95b46b70b8\" target=\"_blank\" rel=\"noopener\">Une autre version avec une gestion d&rsquo;interaction avec le claver et le code document\u00e9<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pour simuler le d\u00e9placement dynamique d&rsquo;un objet en Python, on peut utiliser la biblioth\u00e8que Turtle&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/labodemaths.fr\/WordPress3\/deplacement-aleatoire-avec-python-et-turtle\/\">Read the post<span class=\"screen-reader-text\">D\u00e9placement al\u00e9atoire avec Python et Turtle<\/span><\/a><\/div>\n","protected":false},"author":2,"featured_media":391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/390"}],"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=390"}],"version-history":[{"count":4,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":396,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/390\/revisions\/396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media\/391"}],"wp:attachment":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}