Browse Source

Set

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

2
README.md

@ -38,7 +38,7 @@ product_of_elems = functools.reduce(lambda out, x: out * x, <list>)
``` ```
```python ```python
<int> = <list>.index(<el>) # Returns first index of item. index = <list>.index(<el>) # Returns first index of item.
<list>.insert(index, <el>) # Inserts item at index and moves the rest to the right. <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. <el> = <list>.pop([index]) # Removes and returns item at index or from the end.
<list>.remove(<el>) # Removes first occurrence of item. <list>.remove(<el>) # Removes first occurrence of item.

|||||||
100:0
Loading…
Cancel
Save