Caesar Cipher Encryption

Implement the function encrypt(text: str, rotation: int) -> str, which receives a string text and an integer rotation, and returns an encrypted string using the Caesar cipher. For each letter, r...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: