Your question is Simple Data Encryption. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Write a function to implement a simple data encryption algorithm.
Implement a Caesar cipher that shifts each English letter by shift positions, wrapping around the alphabet. Preserve uppercase and lowercase characters, leave digits and punctuation unchanged, and support negative or large shifts.
def encrypt(text, shift):
Return the encrypted string.
def encrypt(text, shift):