Question: Write and test a new function common _ substring , with arguments left and right as in part ( a ) but also accepting an

Write and test a new function common_substring , with arguments left and right as in part (a) but also accepting an additional integer argument length. The function should check whether any substring of length characters in left matches a substring of length characters in right. The function should return the first matching substring of length characters or the empty string if there is no match.
Complete the function in the following cell. We have provided some tests - your tutor may use additional tests.

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 Programming Questions!