The issue with your code is that it doesn’t handle wrapping around the alphabet when the index exceeds 25. Also, when the character is not found in the alphabet (like a space or punctuation), the program still tries to find and shift it, which causes errors.
Here’s a corrected version of your code:
solution removed by moderator
This ensures that it handles spaces and wraps the alphabet correctly.
thank you for your interest in helping, this is a step in a project the project based curriculum, your concerns are taken care of going forward with the steps in the project.
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.
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.