Python Input Into Array Methods In Typescript