Anonymous user
Loops/Wrong ranges: Difference between revisions
m
→{{header|Python}}: Tidy.
(Promote to full task status.) |
m (→{{header|Python}}: Tidy.) |
||
Line 410:
start, stop, increment = [int(x) for x in (_start, _stop, _increment)]
print(f'{comment.upper()}:\n range({start}, {stop}, {increment})')
try:
values = list(islice(range(start, stop, increment), 999))
except ValueError as e:
print(' !!ERROR!!', e)
if values is not None:
|