(start : float, end : float, step : float)
| 33 | |
| 34 | |
| 35 | def create_float_range(start : float, end : float, step : float) -> Sequence[float]: |
| 36 | float_range = [] |
| 37 | current = start |
| 38 | |
| 39 | while current <= end: |
| 40 | float_range.append(round(current, 2)) |
| 41 | current = round(current + step, 2) |
| 42 | return float_range |
| 43 | |
| 44 | |
| 45 | def calculate_int_step(int_range : Sequence[int]) -> int: |
no outgoing calls