I have the following arrays from a scraped STAAD Pro. input file.
I want to replace the TO by the actual range.
Example array items:
[["638TO640"], ["3033", "3038", "4081", "4087"], ["601TO615", "617"]]
what I would like these array items to become:
[[638, 639, 640], [3033, 3038, 4081, 4087], [601, 602, 603, 604,... 615, 617]]
Is there a simple pythonic way of achieving the conversion?