Reyad Salahin
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
README.md
|
|
@ -56,6 +56,7 @@ List |
|
|
|
|
|
|
|
```python |
|
|
|
elementwise_sum = [sum(pair) for pair in zip(list_a, list_b)] |
|
|
|
cumulative_sum = list(itertools.accumulate(<list>)) |
|
|
|
sorted_by_second = sorted(<collection>, key=lambda el: el[1]) |
|
|
|
sorted_by_both = sorted(<collection>, key=lambda el: (el[1], el[0])) |
|
|
|
flatter_list = list(itertools.chain.from_iterable(<list>)) |
|
|
|