Question: Parameter: One parameter expected to be a lowercase string with a single word in it . Description: This function will take in a word and
Parameter: One parameter expected to be a lowercase string with a single word in it
Description: This function will take in a word and if there is a known pirate equivalent, it will return the pirate equivalent. If the word is not known, the original word is returned. The collection of words to translate from English to pirate are: my to me "you" to yeis to be "are" to be "hello" to "ahoy", "yes" to "arr", "friend" to "matey", and "friends" to "hearties".
Example: translatepiratewordare should return be
Restrictions: You must follow the problemsolving approach developed in class and not use Python things we have not discussed to solve this. An example of forbidden approaches would be using dictionaries. Using these will lose all the incorrectly awarded autograder points.
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
