Question: using python3 to solve the problem Scribes in Medieval Europe who laboriously hand-copied manuscripts for their patrons were generally not permitted to explicitly take credit


using python3 to solve the problem
Scribes in Medieval Europe who laboriously hand-copied manuscripts for their patrons were generally not permitted to explicitly take credit for their work, but many of them found a subtle way to do so anyway: they would often include a slightly-obscured version of their names at the end of the documents they had produced. Instead of using a complicated form of encryption, these scribes simply added their first names, with each vowel replaced by the first consonant that came after it in the alphabet. For example, "Aelfred" would be written as "Bflfrfd" ('a' is replaced by 'b', 'e' by 'f', and so forth). The letteri' should be replaced by 'k' (remember that most of these scribes were writing in Latin, which does not have a distinct letter j").Complete the signature) function, which takes a single string argument representing a name. Your function may assume that the name is all lowercase, but it MAY NOT assume that it only contains letters. In other words, any letters in the input will be lowercase, but the input may also contain spaces, dashes, digits, and other non-letter characters. If the input string only contains letters, the function should return the enciphered equivalent of this name, using the process described above. If the input string contains at least one non-letter character, your function should return the string "ERROR" instead . Your code only needs to replace the five "normal" vowels (a, e, i, o, and u) -don't change or replace any occurrences 0 You may assume that the input will never contain the letter 'j' (this technically doesn't affect anything, but we will assume that the input always conforms to this omission from the Latin alphabet) Your solution does not need to worry about "collapsing" adjacent vowels into a single consonant. For example, it should translate a name like "aethelred" into "bfthflrfd" without treating the initial "ae" pair as a single vowel (a:s would have been done in Old English or Middle English) For example, given the user input "othuil", your program should display the translated name "pthvkl". Hint: You can test for a valid lowercase letter with the in operator and a string that contains all 26 lowercase English letters (like the Python constant string.ascii_lowercase) Examples: Return Value vthfr Function Call signature ("uther") signature ("essaul") fssbvl signature ("maerl4n") ERROR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
