Skip to content

Commit 2ee3058

Browse files
committed
Add Python DS link and reversed enumerate
1 parent 9ec878f commit 2ee3058

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ Additional material:
1515

1616
| **Topic** | **Link** |
1717
|---|---|
18-
| Time complexity | <https://wiki.python.org/moin/TimeComplexity> |
18+
| Python DS | <https://docs.python.org/3/tutorial/datastructures.html> |
1919
| Python collections | <https://docs.python.org/3/library/collections.html> |
20+
| Time complexity | <https://docs.python.org/3/tutorial/datastructures.html> |
2021

2122
## Topics
2223

@@ -66,8 +67,8 @@ Additional material:
6667
4
6768
>>> 2 * 2.
6869
4.0
69-
>>> 4 / 2
70-
2.0
70+
>>> 5 / 2
71+
2.5
7172
>>> 5 // 2 # `//` is the integer division
7273
2
7374
>>> 3 % 2
@@ -133,6 +134,13 @@ inf
133134
10 0
134135
11 1
135136
12 2
137+
138+
# Reversed `enumerate`
139+
>>> for i, v in reversed(list(enumerate(['a', 'b', 'c']))): print(i, v)
140+
...
141+
2 c
142+
1 b
143+
0 a
136144
```
137145

138146
## Tuples

0 commit comments

Comments
 (0)