Tell us what’s happening:
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
shift = 5
shifted_alphabet = alphabet[shift:]
print(shifted_alphabet)
#shifted_alphabet += alphabet[:shift]
shifted_alphabet = alphabet[shift:]+alphabet[:shift]
print(shifted_alphabet)
The step didn’t want to pass…
Your code so far
# User Editable Region
alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5
shifted_alphabet = alphabet[shift:]
print(shifted_alphabet)
shifted_alphabet = alphabet[shift:]+alphabet[0:shift]
print(shifted_alphabet)
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Challenge Information:
Build a Caesar Cipher - Step 4