<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>NUMERIQUE et SCIENCES INFORMATIQUES :: Physique, Chimie et Informatique</title>
    <link>https://dlatreyte.github.io/terminales-nsi/ece/sujet_21/index.html</link>
    <description>Exercice 1 (50% des points) Écrire une fonction python appelée nb_repetitions qui prend en paramètres un élément elt et une liste tab et renvoie le nombre de fois où l’élément apparaît dans la liste.&#xA;Jeu de tests if __name__ == &#34;__main__&#34;: assert nb_repetitions(5, [2, 5, 3, 5, 6, 9, 5]) == 3 assert nb_repetitions(&#34;A&#34;, [&#34;B&#34;, &#34;A&#34;, &#34;B&#34;, &#34;A&#34;, &#34;R&#34;]) == 2 assert nb_repetitions(12, [1, &#34;! &#34;, 7, 21, 36, 44]) == 0 assert nb_repetitions(16, [1, 32, 7, 21, 36, 44]) == 0 Exercice 2 (50% des points) Pour rappel, la conversion d’un nombre entier positif en binaire peut s’effectuer à l’aide des divisions successives comme illustré ici :</description>
    <generator>Hugo</generator>
    <language>fr-FR</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://dlatreyte.github.io/terminales-nsi/ece/sujet_21/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>