strings
Write a function solution(text, shift) that encrypts text using a Caesar cipher with the given shift. Only shift letters (a–z, A–Z). Preserve case and non-letter characters.
Example
solution("Hello!", 3) → "Khoor!"
solution("xyz", 3) → "abc"
solution.py
💡 Tip: Press Ctrl+Enter to run