Learn String Manipulation by Building a Cipher - Step 29

Tell us what’s happening:

I did not get the code which i have tried a lot so can you please help me to run this code

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'

for char in text:
    index = alphabet.find(char),print(char)
    print(index)
    
     

# User Editable Region

Your browser information:

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 29

Welcome to the forum @Shashank2803

You should add index as the second argument to your existing print(char) call. Don’t forget to separate the arguments with a comma.

You created a new print call instead of modifying the existing one.

Please reset the step to restore the original code and try again.

Happy coding