Typescript String Addition Python Code For Snakes