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
You’ve hard-coded your answer.
What if the shift variable changes?
Also, you should modify the line:
shifted_alphabet =
Don’t add a new new line and definitely don’t create a new variable if you are not asked to.
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
1 Like