Write a function filter_string(str1, str2) which returns a copy of str1 with all characters from str2 removed.
def filter_string(str1, str2):
for c in str2:
str1 = str1.replace(c, '')
return str1
Write a function filter_string(str1, str2) which returns a copy of str1 with all characters from str2 removed.
def filter_string(str1, str2):
for c in str2:
str1 = str1.replace(c, '')
return str1
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us