import re a = '$hell@o wo#rld'print(re.sub(r'[$#@]', '', a))
Standard input is empty
hello world
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!