Question: Using the split string method from the preceding lesson, complete the get _ word function to return the { n } th word from a
Using the "split" string method from the preceding lesson, complete the getword function to return the nth word from a passed sentence. For this example, run the print statements one at a time. Delete the other print statements to do this. For example, getwordThis is a lesson about lists", should return "lesson", which is the th word in this sentence. Hint: remember that list indexes start at not
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
