@@ -131,8 +131,7 @@ Range
131
131
``` python
132
132
< range > = range (to_exclusive)
133
133
< range > = range (from_inclusive, to_exclusive)
134
- < range > = range (from_inclusive, to_exclusive, step_size)
135
- < range > = range (from_inclusive, to_exclusive, - step_size)
134
+ < range > = range (from_inclusive, to_exclusive, ±step_size)
136
135
```
137
136
138
137
``` python
@@ -172,11 +171,10 @@ Point(x=1, y=2)
172
171
173
172
Iterator
174
173
--------
175
- * ** If you want to print the iterator, you need to pass it to the list() function.**
176
- * ** In this cheatsheet ` '<collection>' ` can also mean an iterator.**
174
+ ** In this cheatsheet ` '<collection>' ` can also mean an iterator.**
177
175
178
176
``` python
179
- from itertools import islice, count, repeat, cycle, chain
177
+ from itertools import count, repeat, cycle, chain, islice
180
178
```
181
179
182
180
``` python
228
226
```
229
227
230
228
``` python
231
- from numbers import Number, Integral , Real, Rational, Complex
229
+ from numbers import Integral, Rational , Real, Complex, Number
232
230
< bool > = isinstance (< el> , Number)
233
231
```
234
232
@@ -388,7 +386,8 @@ Numbers
388
386
``` python
389
387
< num> = pow (< num> , < num> ) # Or: <num> ** <num>
390
388
< real> = abs (< num> )
391
- < real> = round (< real> [, ndigits])
389
+ < int > = round (< real> )
390
+ < real> = round (< real> , ±ndigits)
392
391
```
393
392
394
393
### Constants
0 commit comments