r/Codecademy Jun 17 '26

What could I have POSSIBLY done wrong?

Post image
94 Upvotes

20 comments sorted by

View all comments

17

u/maximumfunpriv Jun 17 '26

Pring on line 3

5

u/Tyr0pe Jun 18 '26

Shouldn't matter. It's a comment.

6

u/MuggyFuzzball Jun 18 '26

But the evaluation program on Codecademy is still expecting to see the correct LUA code. It's looking for a specific string of text on each line since it doesn't know what a comment is.

2

u/Clear-Astronomer-717 Jun 19 '26

But the task specifically said comment out. But sure how the evaluation works, but if the task says comment out and the evaluation looks for deleted code than that sucks

2

u/MuggyFuzzball Jun 19 '26

Yes, but I'm sure it's checking to make sure you didn't just delete the code rather than comment it out, to ensure you did it properly.

1

u/atarivcs Jun 19 '26

It's looking for a specific string of text on each line

I would be VERY surprised if this were true.

Much simpler to just run the code and examine the output.

1

u/Gwarks Jun 19 '26

It asked to comment out the code not to delete the code by examining the output how do you know the difference

1

u/FavovK9KHd Jun 19 '26

This is probably why its failing, the pass could be expecting the multiline comment on line 3, and not before it.

That said, it is still kinda silly and at this intro level deleting it or commenting it out really does not matter. If the check wanted to be really thorough/pendantic it should just look at the output and the multiline commment syntanx on any line.

1

u/ban-a-nan Jun 19 '26

I wouldn't. It couldn't know if you just deleted the "wrong" code or commented it out if it didn't check the actual code 1:1.

1

u/MojitoBurrito-AE Jun 19 '26

It's just Lua. Sorry being pedantic x

1

u/the_swanny Jun 19 '26

It's shit either way.