Question: Using Python 2.7, create a while loop that takes two strings from the user, and returns what is left over if the second string is

Using Python 2.7, create a while loop that takes two strings from the user, and returns what is left over if the second string is removed from the first. The second string to be removed is guaranteed to be less than four letters long.

#PROBLEM def remove(l1,l2): string1 = l1 string2 = l2 #YOUR CODE GOES HERE (indented) return string1 #END YOUR CODE

Here are some Test Cases it MUST pass!

remove bird cat bird remove bird i brd remove bird bi rd remove birdbirdbikd ir bdbdbikd

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!