Skip to content

Commit ff322a6

Browse files
committed
List
1 parent 5186a0d commit ff322a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ List
3333
```
3434

3535
```python
36+
list_of_chars = list(<str>)
3637
sum_of_elements = sum(<collection>)
3738
elementwise_sum = [sum(pair) for pair in zip(list_a, list_b)]
3839
sorted_by_second = sorted(<collection>, key=lambda el: el[1])
3940
sorted_by_both = sorted(<collection>, key=lambda el: (el[1], el[0]))
4041
flattened_list = list(itertools.chain.from_iterable(<list>))
4142
product_of_elems = functools.reduce(lambda out, x: out * x, <collection>)
42-
list_of_chars = list(<str>)
4343
```
4444

4545
```python

0 commit comments

Comments
 (0)