Skip to content

Commit 785e451

Browse files
committed
Add note about the dangers of legacy python
1 parent 52c9170 commit 785e451

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

notebooks/intermediate/html/idiomatic_misc1.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11893,6 +11893,15 @@ <h2 id="Comprehensions">Comprehensions<a class="anchor-link" href="#Comprehensio
1189311893
</div>
1189411894
</div>
1189511895

11896+
</div>
11897+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
11898+
</div>
11899+
<div class="inner_cell">
11900+
<div class="text_cell_render border-box-sizing rendered_html">
11901+
<p>Note: in case you're using 2.X version of Python for some reason, the result of <code>1/2</code> is <code>0</code> instead of <code>0.5</code>.</p>
11902+
11903+
</div>
11904+
</div>
1189611905
</div>
1189711906
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
1189811907
</div>

notebooks/intermediate/idiomatic_misc1.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@
6666
"print(integer_square_roots_dict) "
6767
]
6868
},
69+
{
70+
"cell_type": "markdown",
71+
"metadata": {},
72+
"source": [
73+
"Note: in case you're using 2.X version of Python for some reason, the result of `1/2` is `0` instead of `0.5`. "
74+
]
75+
},
6976
{
7077
"cell_type": "markdown",
7178
"metadata": {},

0 commit comments

Comments
 (0)