Describe your issue in detail here.
I don’t know what is wrong I have been trying for 2 days please show me the correct code
Your code so far
# User Editable Region
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index = alphabet.find(text[0].lower())
print(index)
shifted = index + shift
print(shifted)
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 16
you need to access a letter of alphabet and assign it to shifted, so write shifted = alphabet and use bracket notation to access the letter at index index + shifted
@kingasir112010 you have to declare a variable like this SOLUTION REDACTED BY MOD
after your print call and remove your second print call 'print(shifted)
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.