Browse Source

Merge 92a302deec into 6a70b6a899

pull/102/merge
Reyad Salahin 1 week ago
committed by GitHub
parent
commit
7d5ebd658d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions
  1. 1
      README.md

1
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>))

Loading…
Cancel
Save