We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff322a6 commit 2a397f2Copy full SHA for 2a397f2
README.md
@@ -33,13 +33,14 @@ List
33
```
34
35
```python
36
-list_of_chars = list(<str>)
37
sum_of_elements = sum(<collection>)
38
elementwise_sum = [sum(pair) for pair in zip(list_a, list_b)]
39
sorted_by_second = sorted(<collection>, key=lambda el: el[1])
40
sorted_by_both = sorted(<collection>, key=lambda el: (el[1], el[0]))
41
flattened_list = list(itertools.chain.from_iterable(<list>))
+list_of_chars = list(<str>)
42
product_of_elems = functools.reduce(lambda out, x: out * x, <collection>)
43
+no_duplicates = list(dict.fromkeys(<list>))
44
45
46
0 commit comments