Skip to content

Commit 45d4223

Browse files
committed
Update documentation
1 parent 332b8c6 commit 45d4223

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

_sources/chap07.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114415,7 +114415,11 @@
114415114415
"cell_type": "code",
114416114416
"execution_count": 22,
114417114417
"id": "4a0c46b9",
114418-
"metadata": {},
114418+
"metadata": {
114419+
"tags": [
114420+
"raises-exception"
114421+
]
114422+
},
114419114423
"outputs": [
114420114424
{
114421114425
"ename": "NameError",
@@ -114933,7 +114937,7 @@
114933114937
"id": "b2acc611",
114934114938
"metadata": {},
114935114939
"source": [
114936-
"`uses_only` converts `word` and `letters` to lowercase, so it works with any combination of cases. "
114940+
"`uses_any` converts `word` and `letters` to lowercase, so it works with any combination of cases. "
114937114941
]
114938114942
},
114939114943
{

chap07.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ <h2><span class="section-number">7.3. </span>Updating variables<a class="headerl
641641
</div>
642642
<p>This statement means “get the current value of <code class="docutils literal notranslate"><span class="pre">x</span></code>, add one, and assign the result back to <code class="docutils literal notranslate"><span class="pre">x</span></code>.”</p>
643643
<p>If you try to update a variable that doesn’t exist, you get an error, because Python evaluates the expression on the right before it assigns a value to the variable on the left.</p>
644-
<div class="cell docutils container">
644+
<div class="cell tag_raises-exception docutils container">
645645
<div class="cell_input docutils container">
646646
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">z</span> <span class="o">=</span> <span class="n">z</span> <span class="o">+</span> <span class="mi">1</span>
647647
</pre></div>
@@ -900,7 +900,7 @@ <h2><span class="section-number">7.6. </span>Search<a class="headerlink" href="#
900900
</div>
901901
</div>
902902
</div>
903-
<p><code class="docutils literal notranslate"><span class="pre">uses_only</span></code> converts <code class="docutils literal notranslate"><span class="pre">word</span></code> and <code class="docutils literal notranslate"><span class="pre">letters</span></code> to lowercase, so it works with any combination of cases.</p>
903+
<p><code class="docutils literal notranslate"><span class="pre">uses_any</span></code> converts <code class="docutils literal notranslate"><span class="pre">word</span></code> and <code class="docutils literal notranslate"><span class="pre">letters</span></code> to lowercase, so it works with any combination of cases.</p>
904904
<div class="cell docutils container">
905905
<div class="cell_input docutils container">
906906
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">uses_any</span><span class="p">(</span><span class="s1">&#39;Banana&#39;</span><span class="p">,</span> <span class="s1">&#39;AEIOU&#39;</span><span class="p">)</span>

0 commit comments

Comments
 (0)