Skip to content

Commit

Permalink
Update bashe on Coursera thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Jul 21, 2019
1 parent 794be33 commit 637428c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions book3/09-dictionaries.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ False
~~~~

To see whether something appears as a value in a dictionary, you can use
the method `values`, which returns the values as a list, and
then use the `in` operator:
the method `values`, which returns the values as a type that can be converted
to a list, and then use the `in` operator:

\index{values method}
\index{method!values}
Expand Down
2 changes: 1 addition & 1 deletion book3/html/09-dictionaries.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1 id="dictionaries">Dictionaries</h1>
True
&gt;&gt;&gt; &#39;uno&#39; in eng2sp
False</code></pre>
<p>To see whether something appears as a value in a dictionary, you can use the method <code>values</code>, which returns the values as a list, and then use the <code>in</code> operator:</p>
<p>To see whether something appears as a value in a dictionary, you can use the method <code>values</code>, which returns the values as a type that can be converted to a list, and then use the <code>in</code> operator:</p>
<p> </p>
<pre class="python"><code>&gt;&gt;&gt; vals = list(eng2sp.values())
&gt;&gt;&gt; &#39;uno&#39; in vals
Expand Down
2 changes: 1 addition & 1 deletion html3/09-dictionaries.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
True
&gt;&gt;&gt; &#39;uno&#39; in eng2sp
False</code></pre>
<p>To see whether something appears as a value in a dictionary, you can use the method <code>values</code>, which returns the values as a list, and then use the <code>in</code> operator:</p>
<p>To see whether something appears as a value in a dictionary, you can use the method <code>values</code>, which returns the values as a type that can be converted to a list, and then use the <code>in</code> operator:</p>
<p> </p>
<pre class="python"><code>&gt;&gt;&gt; vals = list(eng2sp.values())
&gt;&gt;&gt; &#39;uno&#39; in vals
Expand Down

0 comments on commit 637428c

Please sign in to comment.