Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Just make the list, Luke! solution in Clear category for Expand Intervals by obone
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
return [i for a, b in items for i in range(a, b + 1)]
Aug. 3, 2019