Build a Caesar Cipher - Step 4

Tell us what’s happening:

Step 4 in build Caesar Cipher exercise is not accepting the answer, kindly so the solution

Your code so far


# User Editable Region

alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5
shifted_alphabet = alphabet[shift:]
print(shifted_alphabet)
alphabet = alphabet[shift:] + alphabet[:shift]
print(alphabet) # 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/142.0.0.0 Safari/537.36

Challenge Information:

Build a Caesar Cipher - Step 4

We cannot write the answer for you.

Can you talk about how you’ve tried to figure out what is wrong and where you got stuck?

Check the instructions given in the step carefully, are you doing the exact thing that the instructions told you to?

it is requested to add the shift in the shifted equation not a new one!!! try merging the two equations in one called shifted_alphabet..

is there rules as to how to ask for help in these labs and answers to them??

genuine question

We try to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

Posting full working solutions is not allowed.

1 Like

ok thanks, i understand now how it works :+1:

1 Like