Learn String Manipulation by Building a cipher - Step 58

I am stuck on Step 58 of Learn String Manipulation by Building a cipher. I am confused as to where to use the addition assignment operator in order for me to increment key_index by one.

Hello Zack3,

So the hint says:

You should use the += operator to add 1 to key_index

Basically when you assign something to a variable you would normally do something like: my_var = 1. But now instead of just asigning it a new value, you want to use the old value and add one by it using the += operator.

Hopefully this helps you in the right direction, if you are still stuck could you post what you tried?

2 Likes

Thanks for your reply. How do I post my code up to the forum? I have a little understanding about the += operator. What confuses me is which of the key_index lines should I add it to ? Maybe you could help me and show me how to post my code. Thanks

If you click on “help” at the step you’re stuck at a pop up comes up, you then click on “Create a help post on the forum” and it will show you all the information you currently have. You can copy that here in a reply or just post it as a new topic, we’ll help you either way.

2 Likes

Thank you @HungryBee. Will do that right away

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