Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do not use a loop, and just use find(). Write a program which encrypts a word using a Caesar cipher. Name your program 'YourUsernameA102.py',

Please do not use a loop, and just use find().

image text in transcribed

Write a program which encrypts a word using a Caesar cipher. Name your program 'YourUsernameA102.py', e.g. dazh001A102.py A Caesar cipher is a simple and well known encryption technique, where each letter in the original message is replaced by a letter a certain number of positions down the alphabet. You will be using a Caesar cipher with a shift of 5. In other words the letter "a" would be replaced by the letter "f" while the letter "x" would be replaced by the letter "c" Your program should use the following two variables initialized to the values specified below: alphabet"abcdefghijklmnopgrstuvwxyz" shift-5 The user will enter a 5 letter word to be encrypted by the Caesar cipher. You can assume that the word will always consist of 5 alphabetical characters only. Two example outputs using the completed program follow. Your program must give the output in the same format as the outputs in these two examples. *Caesar Cipher Encryption* Please enter a 5 letter word: Damir Encrypted word: ifrnw *Caesar Cipher Encryption* Please enter a 5 letter word: kazoo Encrypted word: pfett

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

1. What is the connection between health IT and flexibility?

Answered: 1 week ago