Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago