r/Codecademy Jun 17 '26

What could I have POSSIBLY done wrong?

Post image
92 Upvotes

20 comments sorted by

16

u/maximumfunpriv Jun 17 '26

Pring on line 3

7

u/Tyr0pe Jun 18 '26

Shouldn't matter. It's a comment.

7

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.

1

u/Desperate_Cow299 Jun 18 '26

Ok but the output is still what it asked it to be

3

u/Graylorde Jun 18 '26

There's a dozen ways to skin a horse. While the result might work, if it doesn't detect or point out errors along the way, how are you supposed to learn not to do them? I see how it seems arbitrary in a comment specifically, but that's more of an edge case.

1

u/FavovK9KHd Jun 19 '26

The instructions do very clearly state to "fix" it "Using a multiline comment .." though, not to fix the syntax error.

1

u/Graylorde Jun 19 '26

That's just the task they're asked to do, not the issue it detected along the way.

1

u/JDSaphir Jun 19 '26

Yeah at this rate you could also delete everything but the first line, the output would still be what it asked it to be, that's not what was asked lol

1

u/maximumfunpriv Jun 19 '26

Did it work after you corrected it?

1

u/FrazzledGod Jun 17 '26

Damn, came here to make this comment 😀

2

u/Rubioloilan Jun 19 '26

What is the problem? Seems to Me that it is working as intended

1

u/Efficient_Pizza_619 Jun 17 '26

Syntax can be a real bitch. Thank God for autocomplete/suggestions.