no, the code I quotes is from the last code you posted, not from the first
in the first code you posted you have only shifted_alphabet with no assignment, assigning something to it is an improvement, but you need to assign a piece of alphabet to it
see the example
fcc = 'freeCodeCamp'
print(fcc[8:]) # Camp
here fcc[8:] is a piece of fcc, considering that, how do you get a piece of alphabet?
It is great that you solved the challenge, but instead of posting your full working solution, it is best 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
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
Too bad you missed the message just above this. It says:
It is great that you solved the challenge, but instead of posting your full working solution, it is best 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
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.