Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea23193

Browse files
committed
compared python 2 and 3 speeds
1 parent fa0b5f1 commit ea23193

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

tutorials/key_differences_between_python_2_and_3.html

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,26 @@ <h4 id="python-3">Python 3</h4>
28682868
</div>
28692869
<div class="inner_cell">
28702870
<div class="text_cell_render border-box-sizing rendered_html">
2871-
<p><strong>Note</strong><br />Some people pointed out the speed difference between Python 3's <code>range()</code> and Python2's <code>xrange()</code>. Since they are implemented the same way one would expect the same speed. However the difference here just comes from the fact that Python 3 generally tends to run slower than Python 2.</p>
2871+
<p><br> <br></p>
2872+
</div>
2873+
</div>
2874+
</div>
2875+
<div class="cell border-box-sizing text_cell rendered">
2876+
<div class="prompt input_prompt">
2877+
</div>
2878+
<div class="inner_cell">
2879+
<div class="text_cell_render border-box-sizing rendered_html">
2880+
<h4 id="Note-about-the-speed-differences-in-Python-2-and-3">Note about the speed differences in Python 2 and 3<a class="anchor-link" href="#Note-about-the-speed-differences-in-Python-2-and-3">&#182;</a></h4>
2881+
</div>
2882+
</div>
2883+
</div>
2884+
2885+
<div class="cell border-box-sizing text_cell rendered">
2886+
<div class="prompt input_prompt">
2887+
</div>
2888+
<div class="inner_cell">
2889+
<div class="text_cell_render border-box-sizing rendered_html">
2890+
<p>Some people pointed out the speed difference between Python 3's <code>range()</code> and Python2's <code>xrange()</code>. Since they are implemented the same way one would expect the same speed. However the difference here just comes from the fact that Python 3 generally tends to run slower than Python 2.</p>
28722891
</div>
28732892
</div>
28742893
</div>

tutorials/key_differences_between_python_2_and_3.ipynb

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:8b17f6649c9b74d878c198037ee831fbec78e7ac375adfc4a62f03266d9d66c3"
4+
"signature": "sha256:eb93a4258ce700755924939b5dc873c027a656b1faafcd0228616b8575378418"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -881,7 +881,22 @@
881881
"cell_type": "markdown",
882882
"metadata": {},
883883
"source": [
884-
"**Note** \n",
884+
"<br>\n",
885+
"<br>"
886+
]
887+
},
888+
{
889+
"cell_type": "heading",
890+
"level": 4,
891+
"metadata": {},
892+
"source": [
893+
"Note about the speed differences in Python 2 and 3"
894+
]
895+
},
896+
{
897+
"cell_type": "markdown",
898+
"metadata": {},
899+
"source": [
885900
"Some people pointed out the speed difference between Python 3's `range()` and Python2's `xrange()`. Since they are implemented the same way one would expect the same speed. However the difference here just comes from the fact that Python 3 generally tends to run slower than Python 2. "
886901
]
887902
},

0 commit comments

Comments
 (0)