Browse Source

List

pull/3/head
Jure Šorn 6 years ago
parent
commit
ea1d1efa6c
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -32,8 +32,8 @@ list_of_chars = list(<str>)
```
```python
index = <list>.index(<el>, [start, [stop]])
<list>.insert(index, <el>) # Inserts item at index and moves the rest right.
index = <list>.index(<el>) # Returns first index of item.
<list>.insert(index, <el>) # Inserts item at index and moves the rest to the right.
<el> = <list>.pop([index]) # Removes and returns item at index or from the end.
<list>.remove(<el>) # Removes first occurance of item.
<list>.clear() # Removes all items.

Loading…
Cancel
Save