Right now I have a list of pairs of numbers in a tuples, list of tuples = [(14, 2),(23,4),(12,42),(12,32)] ..etc
I have to find the intervals between the given tuples, in the list of tuples (so like for the first pair "14, 2" i need the interval of that pair). I was wondering if i could use some list comprehension to accomplish this and what that would look like?
https://stackoverflow.com/questions/66083583/finding-intervals-of-a-list-of-tuples February 07, 2021 at 09:04AM
没有评论:
发表评论