summaryrefslogtreecommitdiff
path: root/progs/a473.py
blob: d82695d77d641e73eb6005a807becfd1136a1312 (plain)
1
2
3
4
5
6
7
8
9
def extract_missing(test_list, strt_val, stop_val):
  res = []
  for sub in test_list:
    if sub[0] > strt_val:
      res.append((strt_val, sub[0]))
      strt_val = sub[1]
    if strt_val < stop_val:
      res.append((strt_val, stop_val))
  return (res)