Write a script that inputs a line of encrypted text and a distance value and outputs plaintext using a Caesar cipher. The script should work for any printable characters.An example of the program input and output is shown below:Enter the coded text: Lipps${svph% Enter the distance value: 4 Hello world!# Request the inputscodedText = input("Enter the coded text: ")distanceValue = int(input("Enter the distance value: "))# Calculate the decryptionplainText = ""for cr in code:ordvalue = ord(ch)cipherValue = ordvalue - distanceif cipherValue < ord('a'):cipherValue = ord('z') - \ (distance - (ord('a') - ordvalue - 1))plainText += chr(cipherValue)print(plainText)

Respuesta :

tonb

Answer:

# Request the inputs

codedText = input("Enter the coded text: ")

distance = int(input("Enter the distance value: "))

# Calculate the decryption

# see comment for the rest. Brainly won't let me save an answer which contains code.

Explanation:

Above is your program fixed, but it is unclear on how to deal with unprintable characters, i.e., characters that originally were near the highest printable character ('~')

RELAXING NOICE
Relax