Learn String Manipulation by Building a Cipher - Step 70

I have done this to fix it but it is not passed

         new_index = (direction * offset) % len(alphabet)

What should i have to do!

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

1 Like

Hi @MrSanyi

Please reset the step to restore the original code.

You removed the index variable.

Just multiply offset by direction without altering any of the other code.

Happy coding

1 Like

i didn’t understand :pray:t3:

You removed the index variable, so you need to reset the step.
Restoring the code will return the missing variable.

Then using the multiplication operator, multiply offset by direction.

The code is checking for a specify sequence, so you need to follow the instructions exactly.

1 Like

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