Question: Hidden References Function Name: findReference ( ) Parameters: message ( str ) Returns: decryptedMessage ( str ) Description: You are going to see the 1

Hidden References
Function Name: findReference()
Parameters: message ( str )
Returns: decryptedMessage ( str )
Description: You are going to see the 10th year anniversary re-release of Interstellar and your
friends keep making references to the movie but... you haven't seen it yet!
Write a function that takes in a parameter, message ( str ), where each word is separated by spa-
ces. Parse the string to create two separate phrases: one containing all the lowercase words (us-
ing all the lowercase letters and spaces within the message) and another containing all the upper-
case words (using all the uppercase letters and spaces within the message). To decrypt the mes-
sage, reverse the phrases and remove all characters that are not letters or spaces. Return the fi-
nal decrypted string, where the lowercase phrase is placed before the uppercase phrase. Be sure
to remove any spaces at the end of your decrypted message before returning it.
> findReference("Do7!L.1'R012(Oe)hW1")
"hello WORLD"
message = "EtR9.,iE4H hEI#trDae OnT1[o?' nTrNAE^o0Mb SREVaENw dSn3_=i=A8k]namW5"
findReference (message)
"mankind was born on earth it WAS NEVER MEANT TO DIE HERE"
Hidden References Function Name: findReference (

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 Programming Questions!