Question: Exercise 3 : A function that returns a list of substrings Write a function substring ( string _ original, n ) that takes a string
Exercise : A function that returns a list of substrings
Write a function substringstringoriginal, n that takes a string parameter stringoriginal, and an integer parameter n and returns a list containing every possible substrings of stringoriginal of length
Include the following function calls:
printsubstringHippopotamus
# You should see Hiippppooppoottaammuus
printsubstringAbcdefg
# You should see Abcd 'bcde', 'cdef', 'defg'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
