Skip to content

Commit

Permalink
Sync html with the notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-git committed Oct 27, 2018
1 parent acb8c3c commit 08ea8b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion notebooks/beginner/html/lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -11777,7 +11777,7 @@
}

$( document ).ready(function(){
show=false;
show=false;
$('div.output').hide()
});
</script>
Expand Down Expand Up @@ -12121,6 +12121,8 @@ <h2 id="List-are-mutable">List are mutable<a class="anchor-link" href="#List-are
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">original</span> <span class="o">=</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">]</span>
<span class="n">modified</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">original</span><span class="p">)</span> <span class="c1"># Note list() </span>
<span class="c1"># Alternatively, you can use copy method</span>
<span class="c1"># modified = original.copy()</span>
<span class="n">modified</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="mi">99</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;original: </span><span class="si">{}</span><span class="s1">, modified: </span><span class="si">{}</span><span class="s1">&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">original</span><span class="p">,</span> <span class="n">modified</span><span class="p">))</span>
</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion notebooks/beginner/notebooks/lists.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.5.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 08ea8b7

Please sign in to comment.