You are supposed to only changed the text/shift variables inside the function. Not the 2 variables at the beginning. You also missed one shift variable.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
Inside the body of the function only. You want to call the function with the arguments that you defined at the beginning of the code. When you all the function:
firstly, you missed a concept. You can transfer the value of a variable by renaming it; for example, age=13 then if want to rename the variable you can just say years_on_earth=age which will transfer the value of age to the years_on_earth variable. Same in this situation, you want to rename text to message and shift to offset. But you are required to rename it inside the function that’s all. so you shouldn’t change the variables outside but just transfer the values inside the function.
Secondly, you should NOT change encrypted_text to ecrypted_message same with the ‘plain text’ string the only thing you should change is the shift and the text variables after transferring values.
Also it is very important to understand what every line in your code does.
This has nothing to do with what’s being asked in the instructions for this task. Assigning the value of a variable to another variable is not “renaming a variable”.
I appreciate you trying to help, but please try to be polite and humble, it goes a long way. Thanks!
Agreed. [pkdvalis] Got it! Please rest assured, I won’t post the entire code. I will post hints and suggestions. I am a very ‘explicitly talkative’ person, therefore I tend to answer in full. I am also a very investigative person, I enjoy asking lot of questions just out of curiosity. I find it easier if it’s WYSIWYG but, yeah, you are right, I shouldn’t post spoilers because , I find puzzles and mystery mind-engaging, that way the solution is etched in memory.