Skip to content

Commit

Permalink
Deployed 1206285 with MkDocs version: 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Sep 14, 2023
1 parent ce0c047 commit 237d6fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion T1_Demarrer_en_Python/1.2_Boucle_for/exercices/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3825,12 +3825,15 @@ <h1 id="exercices-sur-la-boucle-for-in">Exercices sur la boucle <code>for ... in
<li>on veut qu'en sortie de programme cette variable contienne la valeur <code>'bravo'</code>.</li>
</ul>
<p>L'idée est d'ajouter une par une les lettres à la variable <code>chaine</code>.</p>
<p>À l'exécution, le programme doit afficher uniquement <code>bravo</code>.</p>
<p>Compléter le code.</p>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="n">chaine</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
<span class="normal">3</span>
<span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="n">chaine</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
<span class="k">for</span> <span class="o">...</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;b&#39;</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">,</span> <span class="s1">&#39;a&#39;</span><span class="p">,</span> <span class="s1">&#39;v&#39;</span><span class="p">,</span> <span class="s1">&#39;o&#39;</span><span class="p">]:</span>
<span class="o">...</span>
<span class="nb">print</span><span class="p">(</span><span class="n">chaine</span><span class="p">)</span>
</code></pre></div></td></tr></table></div>
<p>Cette variable <code>chaine</code> est appelée un <strong>accumulateur</strong>.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 237d6fa

Please sign in to comment.