17.List slicing - Incorrect code but lesson is validated


#1

Hello,

Has anyone a logical explanation for the following 2 situations:

1.

2.

?

when this is the correct code:

Thanks!


#2

Hi @corinaa,

Codecademy uses a submission correctness test (SCT) that is specific to each exercise to evaluate the user's code. For this exercise, the SCT malfunctions if the user changes the value of the garbled variable. It bases what it considers to be the correct answer on the details of how the final value of the garbled variable relates to the final value of the message variable.


#3

Hi,

I appreciate your prompt answer.

Thank you!


#4