Question: please Write a program that takes a secret encrypted message and returns the hidden decrypted message by changing each letter in the message with the


please
Write a program that takes a secret encrypted message and returns the hidden decrypted message by changing each letter in the message with the next one in the alphabet (For example, A replaced with B, B replaced with c, C replaced with D, ..., and z replaced with A). Spaces and punctuations are not changed. For instance: "Gdx, Oxsgnm hr fqdzs!" will be decrypted as "HEY, PYTHON IS GREAT!" To answer the question, drag and drop the statements (below) to their correct position in the code (above). alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ else: result return result result += char def decodelt(txt, n): X = decodelt("Gdx, Oxsgnm hr fqdzs!") def decodelt(txt): result += alphabet[(alphabet.find(char) + n) % len(alphabet if char!= alphabet: for char in ixtupper(): if char not in alphabet: X = decodelt("Gdx, Oxsgnm hr fdzs!", n) print)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
