@krista Вы можете использовать методы строки .isdigit(), .isalpha() и т.д для удаления из строки посторонних символов.
1 2 3 4 5 |
string = "At shop@some-shop.ru you!!! can buy!@#$ something @*good )*clothes for 10 dollars" new_string = ''.join([x for x in string if x.isdigit() or x.isalpha() or x.isspace()]) print(new_string) # Вывод : At shopsomeshopru you can buy something good clothes for 10 dollars |