Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an A1Z26 decrypter: def decrypt_a1z26(text: str) str: Decipher a text (A1Z26 cipher). # TODO: Implement this function pass A1Z26 method is a

image text in transcribed

Create an A1Z26 decrypter: def decrypt_a1z26(text: str) str: """ Decipher a text (A1Z26 cipher). """ \# TODO: Implement this function pass 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory And Application Bio Science And Bio Technology International Conferences DTA And BSBT 2011 Held As Part Of The Future Generation In Computer And Information Science 258

Authors: Tai-hoon Kim ,Hojjat Adeli ,Alfredo Cuzzocrea ,Tughrul Arslan ,Yanchun Zhang ,Jianhua Ma ,Kyo-il Chung ,Siti Mariyam ,Xiaofeng Song

2011th Edition

3642271561, 978-3642271564

More Books

Students also viewed these Databases questions

Question

What kind of engagement might make sense?

Answered: 1 week ago