Typescript Array With Key Value In Python