List slicing lesson is buggy


#1

When I submit code for this lesson it prints the message as it should be but in the 'oops' error box.


#2

Post your code, and/or screenshots of this issue.


#4

I would prefer someone from the codeacademy staff make this request.


#5

Why? Don't you want your issue resolved? It's not like I can hack you if you post a screenshot. :slightly_smiling:


#6

@smilofactor

Generally when there is an issue like this it is because you as the user failed to read the instructions OR the website cached a previous response.

What I mean is, does it ask you create a function to return a value or does it ask you to print it out, both will display on the console when called.

Secondly, if the sites cached your previous code it could cause a false-positive in which case a hard reload (SHIFT+F5) should resolve that issue.


#7

I know now one can hack me from a simple screenshot. Is that the prevalent fear today?


#8

Would this not be considered a bug?

I cleared cache and the problem continues.


#9

Hi @smilofactor ,

Hmmm ... interesting. You changed the value of the encrypted message, and assigned that changed value to garbled. Codecademy checks whether the final value of message is consistent with that altered value of garbled.

This, with an altered original value assigned to garbled, passes the test ...

garbled = "!XeXgXaXsXsXeXmX XtXeXrXcXeXsX XeXhXtX XtXoXnX XmXaX XI"
message = garbled[::-2]
print message

Output ...

I am not the secret message!

#10

I did? But even when I press the reset code button the problem remains.
I also tried reloading the page.

All several times.


#11

I guess I have to do it straight with garbled[::-2] and not the way I was doing it.
Because that worked.


#12

Yes, it is best to leave the value of garbled as it was originally. Calculate the result and assign it to message.