Typescript Generate Array Of Numbers In Python