Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-git committed Sep 24, 2018
1 parent eb13cd3 commit ea5d4a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions notebooks/intermediate/html/std_lib2.html
Original file line number Diff line number Diff line change
Expand Up @@ -11857,7 +11857,7 @@ <h3 id="Encoding">Encoding<a class="anchor-link" href="#Encoding">&#182;</a></h3


<div class="output_subarea output_stream output_stdout output_text">
<pre>type: &lt;class &#39;str&#39;&gt; data: {&#34;a&#34;: 1, &#34;some_list&#34;: [1, 2, 3], &#34;b&#34;: true, &#34;c&#34;: null, &#34;nested&#34;: {&#34;foo&#34;: &#34;bar&#34;}}
<pre>type: &lt;class &#39;str&#39;&gt; data: {&#34;c&#34;: null, &#34;b&#34;: true, &#34;some_list&#34;: [1, 2, 3], &#34;a&#34;: 1, &#34;nested&#34;: {&#34;foo&#34;: &#34;bar&#34;}}
</pre>
</div>
</div>
Expand Down Expand Up @@ -11897,7 +11897,7 @@ <h3 id="Decoding">Decoding<a class="anchor-link" href="#Decoding">&#182;</a></h3


<div class="output_subarea output_stream output_stdout output_text">
<pre>type: &lt;class &#39;dict&#39;&gt; data: {&#39;a&#39;: 1, &#39;some_list&#39;: [1, 2, 3], &#39;b&#39;: True, &#39;c&#39;: None, &#39;nested&#39;: {&#39;foo&#39;: &#39;bar&#39;}}
<pre>type: &lt;class &#39;dict&#39;&gt; data: {&#39;c&#39;: None, &#39;nested&#39;: {&#39;foo&#39;: &#39;bar&#39;}, &#39;b&#39;: True, &#39;some_list&#39;: [1, 2, 3], &#39;a&#39;: 1}
</pre>
</div>
</div>
Expand Down Expand Up @@ -11939,7 +11939,7 @@ <h3 id="MagicMock"><a href="https://docs.python.org/3/library/unittest.mock.html
<span class="bp">self</span><span class="o">.</span><span class="n">creds</span> <span class="o">=</span> <span class="p">(</span><span class="n">username</span><span class="p">,</span> <span class="n">password</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">fetch_some_data</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Here we could for example fetch data from 3rd API and return the data.&#39;</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Here we could for example fetch data from 3rd party API and return the data.&#39;</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Now we will just return some random number between 1-100.&#39;</span><span class="p">)</span>
<span class="k">return</span> <span class="n">random</span><span class="o">.</span><span class="n">randint</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">100</span><span class="p">)</span>

Expand Down Expand Up @@ -12066,7 +12066,7 @@ <h3 id="patch"><a href="https://docs.python.org/3/library/unittest.mock.html#uni
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;All good, woop woop!&#39;</span><span class="p">)</span>


<span class="n">test_do_something_fancy</span><span class="p">()</span> <span class="c1"># This just for the sake of example</span>
<span class="n">test_do_something_fancy</span><span class="p">()</span> <span class="c1"># This is just for the sake of example</span>
</pre></div>

</div>
Expand Down Expand Up @@ -12252,7 +12252,7 @@ <h3 id="defaultdict"><a href="https://docs.python.org/3/library/collections.html


<div class="output_subarea output_stream output_stdout output_text">
<pre>{&#39;odd&#39;: [1, 3, 3, 5, 7], &#39;even&#39;: [2, 4, 2, 6]}
<pre>{&#39;even&#39;: [2, 4, 2, 6], &#39;odd&#39;: [1, 3, 3, 5, 7]}
</pre>
</div>
</div>
Expand Down Expand Up @@ -12300,7 +12300,7 @@ <h3 id="defaultdict"><a href="https://docs.python.org/3/library/collections.html


<div class="output_subarea output_stream output_stdout output_text">
<pre>defaultdict(&lt;class &#39;list&#39;&gt;, {&#39;odd&#39;: [1, 3, 3, 5, 7], &#39;even&#39;: [2, 4, 2, 6]})
<pre>defaultdict(&lt;class &#39;list&#39;&gt;, {&#39;even&#39;: [2, 4, 2, 6], &#39;odd&#39;: [1, 3, 3, 5, 7]})
</pre>
</div>
</div>
Expand Down Expand Up @@ -12347,7 +12347,7 @@ <h3 id="defaultdict"><a href="https://docs.python.org/3/library/collections.html


<div class="output_subarea output_stream output_stdout output_text">
<pre>defaultdict(&lt;class &#39;int&#39;&gt;, {&#39;odd_count&#39;: 5, &#39;even_count&#39;: 4})
<pre>defaultdict(&lt;class &#39;int&#39;&gt;, {&#39;even_count&#39;: 4, &#39;odd_count&#39;: 5})
</pre>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions notebooks/intermediate/notebooks/std_lib2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
" self.creds = (username, password)\n",
" \n",
" def fetch_some_data(self):\n",
" print('Here we could for example fetch data from 3rd API and return the data.')\n",
" print('Here we could for example fetch data from 3rd party API and return the data.')\n",
" print('Now we will just return some random number between 1-100.')\n",
" return random.randint(1, 100)\n",
"\n",
Expand Down Expand Up @@ -175,7 +175,7 @@
" print('All good, woop woop!')\n",
" \n",
" \n",
"test_do_something_fancy() # This just for the sake of example"
"test_do_something_fancy() # This is just for the sake of example"
]
},
{
Expand Down

0 comments on commit ea5d4a3

Please sign in to comment.