Skip to content

Commit 2a397f2

Browse files
committed
Returned the infamous no_duplicates example, not yet ready
1 parent ff322a6 commit 2a397f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

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

3535
```python
36-
list_of_chars = list(<str>)
3736
sum_of_elements = sum(<collection>)
3837
elementwise_sum = [sum(pair) for pair in zip(list_a, list_b)]
3938
sorted_by_second = sorted(<collection>, key=lambda el: el[1])
4039
sorted_by_both = sorted(<collection>, key=lambda el: (el[1], el[0]))
4140
flattened_list = list(itertools.chain.from_iterable(<list>))
41+
list_of_chars = list(<str>)
4242
product_of_elems = functools.reduce(lambda out, x: out * x, <collection>)
43+
no_duplicates = list(dict.fromkeys(<list>))
4344
```
4445

4546
```python

0 commit comments

Comments
 (0)