Learn String Manipulation by Building a Cipher - Step 37

Tell us what’s happening:

need help i cant find solution for this one , can anyone help me

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
encrypted_text = ('')

for char in text.lower():
    index = alphabet.find(char)    
    new_index = index + shift
    encrypted_text 
    print('char:', char, 'encrypted text:', encrypted_text)

# 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/147.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 37

Github Link: freeCodeCamp/curriculum/challenges/english/blocks/learn-string-manipulation-by-building-a-cipher/6568cc9301a0c41058ed95c5.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @dahmanisedki4!

It looks like you may have changed the starting code in areas you were not asked to change, which will cause the tests to fail. Please click the reset button to restore the original code and try again.

image

In this step, you are asked to replace new_char with encrypted_text. Do not make any other changes.

Happy coding!