Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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,
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 buffsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started