Question: In Python using a Caesar cipher, Ascii code 32 from the ascii table Ascii code 126 from the ascii table (Look up ascii table) Using

In Python using a Caesar cipher,
 In Python using a Caesar cipher, Ascii code 32 from the
Ascii code 32 from the ascii table
ascii table Ascii code 126 from the ascii table (Look up ascii
Ascii code 126 from the ascii table
(Look up ascii table)
table) Using this setup of code please: Gets this output when done:
Using this setup of code please:
1) Go to called cipher(phrase,snift) that accepts two parameters: a string phrase
Gets this output when done:
and an integer shift. The integer shift can be positive, negative or

1) Go to called cipher(phrase,snift) that accepts two parameters: a string phrase and an integer shift. The integer shift can be positive, negative or zero. Mentally form a ring of characters made up of the character to see what a Caesar cipher is. Write a function space (ascii code 32) through the character '(ascii code 126) in the ASCII table Shift the characters in the phrase specified by the number shift. If it is positive, shift the phrase to the right, or up. If it is negative, shift the phrase to the left, or down. Your function should be able to wrap around as well. Hence, cipher1) will yield"" and cipher 2) will yield "". Hint: there are 95 characters in the ring. That is, 95ord)-ord)+1. You may want to use the following functions in your code: ordi'A') - 65, and chrf65)-A', and " joinlrA: 8)-AB: (200 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!