Python List Comprehension Create Dictionary Typescript Interview