Tell us what’s happening:
i have read through the post on the forum but still can’t figure where i’m going wrong. i’m getting the correct output but can’t get past the “sorry, your code does not pass”
shifted_alphabet = alphabet[shift:]
missing_portion = alphabet[:shift]
combined = shifted_alphabet + missing_portion
print(combined) #fghijklmnopqrstuvwxyzabcde
Your code so far
# User Editable Region
alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5
shifted_alphabet = alphabet[shift:]
print(shifted_alphabet)
missing_portion = alphabet[:shift]
combined = shifted_alphabet + missing_portion
print(combined)
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Challenge Information:
Build a Caesar Cipher - Step 4