Typescript Insert Into Array Python Example For Loop