Build a Caesar Cipher - Step 4

Tell us what’s happening:

What am I doing wrong with the concatenation? Am I using the slicing correct?

Your code so far

alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5

# User Editable Region

shifted_alphabet = alphabet[shift:] + alphabet[0:]

# User Editable Region

print(shifted_alphabet)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a Caesar Cipher - Step 4

your slicing alphabet[0:] will get all the string in the alphabet. but they say you should get only the missing portion. use the variable shift as your stop.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.