Build a Caesar Cipher - Step 4

Tell us what’s happening:

I need help with python because well I’m a beginner I used this website before I started this scratch.mit.edu can you help me I’m not good at python

Your code so far


# User Editable Region

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






































vv



# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build a Caesar Cipher - Step 4

Welcome to the forum @ah430319

It looks like you repeated the code.

I got your code to pass by removing the repeated lines.

You can either delete the extra code, or reset the step.

Make sure you copy the new line of code if you decide to reset.

Happy coding