Build a Caesar Cipher - Step 4

Tell us what’s happening:

Use the slicing syntax to extract the missing first portion of alphabet and concatenate it to alphabet[shift:].

As a reminder, sentence[start:stop] returns the characters of sentence from position start (included) to stop (excluded).

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/142.0.0.0 Safari/537.36

Challenge Information:

Build a Caesar Cipher - Step 4

Hi, do you have a question?

What have you tried so far?

The current output dispays the last part of the alphabet:

fghijklmnopqrstuvwxyz

You need it to display the beginning of the alphabet at the end of that. This is the desired output:

fghijklmnopqrstuvwxyzabcde

Do you have an idea of how to do that?