Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasero committed Sep 17, 2024
1 parent 7600998 commit 16637c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions _sources/chapters/module-2/025-conditional.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@
"metadata": {},
"source": [
"<div class=\"alert alert-danger\"> \n",
"<b>DANGER:</b> Be careful with while loops, as they might be unending. For example:\n",
"<b>DANGER:</b> Be careful with while loops, as they might be unending. For example: \n",
" <code>\n",
"while 1:\n",
" print(\"This is so annoying\")</code>\n",
Expand Down Expand Up @@ -862,14 +862,14 @@
":label: conditional1\n",
"\n",
"1 - Given z=4 write an \"if\" statement that evaluates if z is odd or even and then print z is even. \n",
"2 - Add an \"else\" statement to the previous code to print \"z is odd\". Try changing the value of z to see whether your code works or not.\n",
"2 - Add an \"else\" statement to the previous code to print \"z is odd\". Try changing the value of z to see whether your code works or not. \n",
"3 - Inside either the \"if\" or \"else\", include a print statement giving the message of what number is being checked by the condition. (Hint: use string formatting for this). \n",
"```"
]
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
Expand Down
4 changes: 2 additions & 2 deletions chapters/module-2/025-conditional.html
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ <h3><code class="docutils literal notranslate"><span class="pre">for</span></cod
<li><p><code class="docutils literal notranslate"><span class="pre">While</span></code> loops are when <strong>you don’t know</strong> how many interations it will take – you are depending on some condition to be met.</p></li>
</ul>
</div><div class="alert alert-danger">
<b>DANGER:</b> Be careful with while loops, as they might be unending. For example:
<b>DANGER:</b> Be careful with while loops, as they might be unending. For example:
<code>
while 1:
print("This is so annoying")</code>
Expand Down Expand Up @@ -909,7 +909,7 @@ <h2>Practice exercises<a class="headerlink" href="#practice-exercises" title="Li
<p class="admonition-title"><span class="caption-number">Exercise 16 </span></p>
<section id="exercise-content">
<p>1 - Given z=4 write an “if” statement that evaluates if z is odd or even and then print z is even.<br />
2 - Add an “else” statement to the previous code to print “z is odd”. Try changing the value of z to see whether your code works or not.
2 - Add an “else” statement to the previous code to print “z is odd”. Try changing the value of z to see whether your code works or not.<br />
3 - Inside either the “if” or “else”, include a print statement giving the message of what number is being checked by the condition. (Hint: use string formatting for this).</p>
</section>
</div>
Expand Down

0 comments on commit 16637c0

Please sign in to comment.