You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/python/python-language.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1305,8 +1305,6 @@ Example Output:
1305
1305
3 potato
1306
1306
```
1307
1307
1308
-
Note that the last number is 3 in the example above, not 4!
1309
-
1310
1308
###### Using the `step` parameter of the `range()` function
1311
1309
1312
1310
The `range()` function takes a third argument, `step`, which allows you to generate sequences of numbers separated by a given step:
@@ -1326,6 +1324,20 @@ Example Output:
1326
1324
10
1327
1325
```
1328
1326
1327
+
##### `round()`
1328
+
1329
+
The `round()` function is used to round a decimal number (`float`) to an integer or to round a decimal number to a given number of digits after the decimal point:
0 commit comments