Skip to content

Commit 1fa6b24

Browse files
committed
List
1 parent 141cb17 commit 1fa6b24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ index = <list>.index(<el>) # Returns index of first occurrence or raises Val
5959
<list>.insert(index, <el>) # Inserts item at index and moves the rest to the right.
6060
<el> = <list>.pop([index]) # Removes and returns item at index or from the end.
6161
<list>.remove(<el>) # Removes first occurrence of item or raises ValueError.
62-
<list>.clear() # Removes all items. Also works on dict and set.
62+
<list>.clear() # Removes all items. Also works on dictionary and set.
6363
```
6464

6565

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
&lt;list&gt;.insert(index, &lt;el&gt;) <span class="hljs-comment"># Inserts item at index and moves the rest to the right.</span>
254254
&lt;el&gt; = &lt;list&gt;.pop([index]) <span class="hljs-comment"># Removes and returns item at index or from the end.</span>
255255
&lt;list&gt;.remove(&lt;el&gt;) <span class="hljs-comment"># Removes first occurrence of item or raises ValueError.</span>
256-
&lt;list&gt;.clear() <span class="hljs-comment"># Removes all items. Also works on dict and set.</span>
256+
&lt;list&gt;.clear() <span class="hljs-comment"># Removes all items. Also works on dictionary and set.</span>
257257
</code></pre>
258258
<div><h2 id="dictionary"><a href="#dictionary" name="dictionary">#</a>Dictionary</h2><pre><code class="python language-python hljs">&lt;view&gt; = &lt;dict&gt;.keys() <span class="hljs-comment"># Coll. of keys that reflects changes.</span>
259259
&lt;view&gt; = &lt;dict&gt;.values() <span class="hljs-comment"># Coll. of values that reflects changes.</span>

0 commit comments

Comments
 (0)