Question: using python write a function called remove that takes two strings as arguments : the source, and the token.The function should remove all instances of
using python write a function called remove that takes two strings as arguments : the source, and the token.The function should remove all instances of the token from the source string . Note: The built-in string.replace is particularly well suited for this task. example " This is as it is" gives "Th as it" .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
