- 2
Hello, can anyone solve this problem with Python language and write the code?
Caesar Cipher A âCaesar Cipherâ is a simple way of encrypting a message by replacing each letter with a letter a certain number of spaces up the alphabet. For example, if shifting the message by 13, an A would become an N, while an S would wrap around to the start of the alphabet to become an F. Write a program that asks the user for a message (a string) and a shift amount (an integer). The values should be passed to a function that accepts a string and an integer as arguments, and returns a string representing the original string encrypted by shifting the letters by the integer. For example, a string of âBEWARE THE IDES OF MARCHâ and an integer of 13 should result in a string of âORJNER GUR VQRF BS ZNEPUâ.
1 Answer
+ 6
Anyone can. Can you write it?
Sololearn is not a code writing service. If you need help with your own code, please link it. If you want to learn Python, start the Python for Beginners course.