effectively one liner: Only the first and last element matters.
\nif rounds[-1] < rounds[0]:\n    return range(1, rounds[-1] + 1) + range(rounds[0], n+1)\nelse:\n    return range(rounds[0], rounds[-1] + 1)\n
```\nif rounds[-1] < rounds[0]:\n    return range(1, rounds[-1] + 1) + range(rounds[0], n+1)\nelse:\n    return range(rounds[0], rounds[-1] + 1)\n```
['Python']