Typescript Get From Array Python Example Code