File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ index = <list>.index(<el>) # Returns index of first occurrence or raises Val
59
59
< list > .insert(index, < el> ) # Inserts item at index and moves the rest to the right.
60
60
< el> = < list > .pop([index]) # Removes and returns item at index or from the end.
61
61
< 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.
63
63
```
64
64
65
65
Original file line number Diff line number Diff line change 253
253
<list>.insert(index, <el>) < span class ="hljs-comment "> # Inserts item at index and moves the rest to the right.</ span >
254
254
<el> = <list>.pop([index]) < span class ="hljs-comment "> # Removes and returns item at index or from the end.</ span >
255
255
<list>.remove(<el>) < span class ="hljs-comment "> # Removes first occurrence of item or raises ValueError.</ span >
256
- <list>.clear() < span class ="hljs-comment "> # Removes all items. Also works on dict and set.</ span >
256
+ <list>.clear() < span class ="hljs-comment "> # Removes all items. Also works on dictionary and set.</ span >
257
257
</ code > </ pre >
258
258
< div > < h2 id ="dictionary "> < a href ="#dictionary " name ="dictionary "> #</ a > Dictionary</ h2 > < pre > < code class ="python language-python hljs "> <view> = <dict>.keys() < span class ="hljs-comment "> # Coll. of keys that reflects changes.</ span >
259
259
<view> = <dict>.values() < span class ="hljs-comment "> # Coll. of values that reflects changes.</ span >
You can’t perform that action at this time.
0 commit comments