Question: Create an A1Z26 decrypter: def decrypt_a1z26(text: str) str: def main() None: main() A1Z26 method is a substitution cipher. It means that it replaces the letter

 Create an A1Z26 decrypter: def decrypt_a1z26(text: str) str: def main() None:

Create an A1Z26 decrypter: def decrypt_a1z26(text: str) str: def main() None: main() A1Z26 method is a substitution cipher. It means that it replaces the letter with its number in the alphabet. For example: - Letter A is the first letter in the alphabet, so it will be replaced with 1. - Letter D is the 4th letter in the alphabet, so it will be replaced with 4. - Thus, message AD will be replaced with 1-4 (a dash is added between each two numbers). - The program should correctly decrypt both upper-case and lower-case letters and keep all other characters (whitespace, punctuation, etc.) intact. Must be able to decrypt without converting the string to upper/lower case. - You can assume that the original message will not contain any numbers - The A1Z26 cipher is case-insensitive, so you will lose the information about the case of the letters. It's fine - Hint: Remember that some arguments of range ( ) can be negative (and it can take up to three arguments)! Example: Input 2085 17-21-9-3-11 2-18-15-23-14 6-15-24. this is a string Output THE QUICK BROWN FOX. MUST BE ABLE TO RUN WHILE RETAINING THE SPACES IN BETWEEN

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