Typescript String Number Array Python Question