Typescript Turn String Into Array Python Practice