Question: Name: translate _ pirate _ word Parameter: One parameter expected to be a lowercase string with a single word in it . Description: This function

Name: translate_pirate_word
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 "ye","is" to "be", "are" to "be", "hello" to "ahoy", "yes" to "arr", "friend" to "matey", and "friends" to "hearties".

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!