Answered step by step
Verified Expert Solution
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,
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
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started