Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program that receives a message in string format as an input, encrypt the message as a string by using the dictionary below,

image text in transcribed
Write a Python program that receives a message in string format as an input, encrypt the message as a string by using the dictionary below, and print this encrypted string on the screen. dictionary = {"a":"1", "b":"2", "c":"3", "d":"4","e":"5", "T":"6","g":7", "h":"8" ***:"9". 7:10", "K":"11","7":"12", m*13","n":"14", "6":"15","p":"16", "q":"17", "r":"18", "s":"19", "T":"20","u":"21"V":22" W"23" x 24", "y"+25", "z":"26"} If the input message holds characters that are not in the dictionary, use x" for these characters. Case is ignored with the assumption that the input message is in the lowercase. Sample input message: "meet me at the airport at 9 am!! Sample output: "135520x1135x120x2085x191816151820x120xxx113xx

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

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions

Question

=+ (b) Show that P[n- 1 max 0. Relate to Theorem 14.3.

Answered: 1 week ago