Jul-29-2017, 05:51 PM
Example with islice and chain from itertools:
from itertools import islice from itertools import chain new_list = list(chain((x.capitalize() for x in islice(numbers, 0, 10)), islice(numbers, 10)))
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!