C
de
S
pace
Explore
Log In
Explore
Sign Up
Log In
haydenfischer452
22.05.2026 11:34
1
Caesar cipher #1
Hackathon project, built in one night
solver.py
def caesar_cipher(text, shift=3): result = "" for ch in text: if ch.isalpha(): base = ord("A") if ch.isupper() else ord("a") result += chr((ord(ch) - base + shift) % 26 + base) else: result += ch return result print(caesar_cipher("Hello World"))
Idle
Try It
Clear
Log in
to leave a comment
Are you sure you want to delete this post?
Delete
Cancel