(start : int, end : int, step : int)
| 23 | |
| 24 | |
| 25 | def create_int_range(start : int, end : int, step : int) -> Sequence[int]: |
| 26 | int_range = [] |
| 27 | current = start |
| 28 | |
| 29 | while current <= end: |
| 30 | int_range.append(current) |
| 31 | current += step |
| 32 | return int_range |
| 33 | |
| 34 | |
| 35 | def create_float_range(start : float, end : float, step : float) -> Sequence[float]: |
no outgoing calls