Build a Caesar Cipher - Step 4

Tell us what’s happening:

My code is correct with desired output, but its not approved

Your code so far


# User Editable Region

alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5
shifted_alphabet = alphabet[shift:] + alphabet[:5]
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 Edg/142.0.0.0

Challenge Information:

Build a Caesar Cipher - Step 4

Please refer to this thread

Also, check the console:

// running tests
1. You should assign the concatenation of alphabet[shift:] and the missing first portion of alphabet to the shifted_alphabet variable. 

***Use shift to specify where to stop the slicing.***

// tests completed
// console output
1 Like

Yes, I solved it thanks …the solution was right infront of me :confetti_ball:

1 Like