Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
short solution in Creative category for Expand Intervals by lxf42
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
return sum([list(range(x,y+1)) for x,y in items], [])
Feb. 20, 2022
Comments: