Question: Using Python, PROBLEM 5: Secret message finder Function Name: extractMessage Inputs: A string containing a sentence mined from an archival manuscript Return Value: The hidden

Using Python,

Using Python, PROBLEM 5: Secret message finder Function Name: extractMessage Inputs: A

PROBLEM 5: Secret message finder Function Name: extractMessage Inputs: A string containing a sentence mined from an archival manuscript Return Value: The hidden message formed by displaying only the third letter of each word from the "coded" input Description: Your documentary film production team has uncovered a secret from an ancient civilization and discovered evidence that the contents of the manuscript conceal a hidden message! The authors of the manuscript embedded secret information "in plain sight" by hiding the sequential letters making up the message in the third letter of each written word on the page. For example: "Thinking it delightful alone, diver goes to thinking sand, affirming thoughts" results in "i love info" Two notes/hints: 1. Note that words shorter than three letters are "unencoded" as a space between words 2. Please take care to note that this question also asks you to return a value instead of simply printing it to the command area. (If you use the test cases below, they will help you to check that you're constructing your function in an appropriate way!) Test Cases: >>> print extractMessage ("Thinking it delightful alone, diver goes to thinking sand, affirming thoughts") i love info >>> redacted = extractMessage ("insofar rake drones, i rebuff crunchier waffle life assuredly.") >>> print redacted sko buffs

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!