Skip to content

Commit 95ea94b

Browse files
committed
List
1 parent 356dc81 commit 95ea94b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ List
2121
```
2222

2323
```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>
2626
```
2727

2828
```python
@@ -43,11 +43,11 @@ list_of_chars = list(<str>)
4343
```
4444

4545
```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.
5151
```
5252

5353

0 commit comments

Comments
 (0)