python slice string by character

visit shbcf.ru