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 th year anniversary rerelease 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
findReferenceDoLROehW
"hello WORLD"
message "EtRiEH hEI#trDae OnTo nTrNAEoMb SREVaENw dSniAknamW
findReference message
"mankind was born on earth it WAS NEVER MEANT TO DIE HERE"
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
