Typescript Push Element Into Array Definition Python