Build a Caesar Cipher - Step 3

Tell us what’s happening:

I was told tocreate a variable named shifted_alphabet and use the slicing syntax to assign it the portion of alphabet that starts at the index of shift.My code still wont pass.I need help please

Your code so far


# User Editable Region

alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5
shifted_alphabet="alphabet[shift:]"
print(shifted_alphabet)

# 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/133.0.0.0 Safari/537.36

Challenge Information:

Build a Caesar Cipher - Step 3

You may want to remove the quotes from the shifted_alphabet variable. I hope that helps. :slightly_smiling_face:

1 Like