Browse Source

Returned the infamous no_duplicates example, not yet ready

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

3
README.md

@ -33,13 +33,14 @@ List
```
```python
list_of_chars = list(<str>)
sum_of_elements = sum(<collection>)
elementwise_sum = [sum(pair) for pair in zip(list_a, list_b)]
sorted_by_second = sorted(<collection>, key=lambda el: el[1])
sorted_by_both = sorted(<collection>, key=lambda el: (el[1], el[0]))
flattened_list = list(itertools.chain.from_iterable(<list>))
list_of_chars = list(<str>)
product_of_elems = functools.reduce(lambda out, x: out * x, <collection>)
no_duplicates = list(dict.fromkeys(<list>))
```
```python

Loading…
Cancel
Save