Learn String Manipulation by Building a Cipher - Step 12

Tell us what’s happening:

This step asks me to “take each letter in your message, find its position in the alphabet, take the letter located after 3 positions, and replace the original letter with the new letter.” but to pass this step I don’t actually have to do this!?
I was very confused on what I was tasked to do at first so I asked chatgpt for help, to try and figure out what I was supposed to do and how it works and ended up getting even more confused as the more and more I asked the more clearly it seemed to me that I didn’t actually do what I was tasked to at all, can anyone please explain why does freecodecamp accept the incomplete code bellow as correct?

Your code so far

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
position = aphabet.find(text[0])
print(position)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 12

remove position and print

correct the spelling

Apologies I did not see the typo “aphabet.find(text[0])” when making my question, still this does not answer my question!
Also may I ask what do you mean when saying to “remove position and print”?

u don’t need to assign it to variable position and print position. the instruction only says u to put text[0] inside find() function and apply on to string variable alphabet

this is the instruction u have to do in this step.

Oh I see now, I was making thing way more complicated than what it actually was. Thank you for clarifying what I was meant to do! Thanks!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.