File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
```
22
22
23
23
``` python
24
- < list > .append(< el> ) # Or: <list> += [<el>]
25
- < list > .extend(< collection> ) # Or: <list> += <collection>
24
+ < list > .append(< el> ) # Or: <list> += [<el>]
25
+ < list > .extend(< collection> ) # Or: <list> += <collection>
26
26
```
27
27
28
28
``` python
@@ -43,11 +43,11 @@ list_of_chars = list(<str>)
43
43
```
44
44
45
45
``` python
46
- index = < list > .index(< el> ) # Returns first index of item.
47
- < list > .insert(index, < el> ) # Inserts item at index and moves the rest to the right.
48
- < el> = < list > .pop([index]) # Removes and returns item at index or from the end.
49
- < list > .remove(< el> ) # Removes first occurrence of item or raises ValueError.
50
- < list > .clear() # Removes all items.
46
+ index = < list > .index(< el> ) # Returns first index of item.
47
+ < list > .insert(index, < el> ) # Inserts item at index and moves the rest to the right.
48
+ < el> = < list > .pop([index]) # Removes and returns item at index or from the end.
49
+ < list > .remove(< el> ) # Removes first occurrence of item or raises ValueError.
50
+ < list > .clear() # Removes all items.
51
51
```
52
52
53
53
You can’t perform that action at this time.
0 commit comments