How to find characters from a tuple ('!',',','?') in a string and remove them?
📁 cortege, string, Advanced Python Topics
There is a tuple:
a= ('!',',','?')And a string
dasd,sadarg!adaHow can I find characters from the tuple in the string and remove them?
Here's what I got:
operator_one = {2: 'break', 1: 'pass', 3: 'print', 4: 'yield', 5: 'try', }operator_two = {1: 'pass', 2: 'global', 3: 'yield', 4: 'print', 5: 'try' Log in to leave an answer