Hello everyone. Im learning python and have been stuck with this for about an hour now. Ive tried placing “index = alphabet.find (char)” in multiple different areas, ive tried changing "for char in text: " to "for char in alphabet: ". Nothing is working. Ive read previous forum posts, trying every single suggestion but to no avail. Id appreciate genuine help and not a suggestion from someone stating I dont know anything and should go back to the beginning. Honestly one of the most insane responses Ive ever read considering the website im on.
/* User Editable Region */
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for char in text:
index = alphabet.find (char)
print(char)
/* User Editable Region */
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 23