Browse Source

List

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

2
README.md

@ -38,8 +38,8 @@ 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>)
list_of_chars = list(<str>)
```
```python

Loading…
Cancel
Save