No comments needed

  • 4
  • Locked
Not all comments are equally helpful! Sometimes they appear in the code when a programmer isn't sure about some line and wants to return to it later. For example, in this task we have one unnecessary comment that is making the program work incorrectly. Uncomment one line to get the correct result!
You can't complete this task, because you're not signed in.
Comments (124)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Josh Lee
Level 0
9 March, 04:11
nice challenge. Just see it as executing the code line by replacing each new variable. 😄😄😄😄😄
2 March, 10:00
I like that this challenge was introduced in the very basic steps. And I think it enforces practical thinking early enough. Good work Codegym
Kabwe Eugene
Level 1, Makati, Philippines
16 February, 09:33
Its just about math! if you uncomment the second condition, the value of Y is becoming (x+y or 2+12) =14 then we minus X(2) then it will give us 12 as the value of X in line 16. Line 17 Y is 14 considering the condition in line 14 so 14 minus 12 which is the value of X in line 16 will give us 2. Hence 12 2
Level 4, Slough, United Kingdom
5 October 2020, 12:54
I just don't get it, there are 2 comments anyway, I tried the first, it didn't work then the second one, it worked, I have the solution, but I don't how this works. Just waste of my time, as it is not explained how that worked.
18 October 2020, 19:57
You have to think the code is runing and getting processed line by line, from the top to the bottom one line at the time. If you do not uncomment any line, what happens? those commented lines are ignored, and the result is 2 and then 12 printed on the screen. So you have to, lets say, unblock or uncomment some code to get processed too, adding some extra, lets say, mathematic transformation to the original code which will twerk the result now printing firstly 12 and then 2.
Level 0
15 December 2020, 19:21
Or just remove the lower pair of slashes, either way, it workes.
Lorraine Brown
Level 2, Oakland, United States
30 September 2020, 16:34
Is there a way to reset this question to the original state? For some reason, I am not getting this one. I got to see the original versus the hint. It probably just me.
Dilshodbek Fayzullayev
Level 1, Frankfurt am Main, Germany
29 September 2020, 10:14
Brady Raphael
Level 1, Albert Lea, United States
26 September 2020, 16:35
LMAO how is this hard?
Level 1, Arlington, United States
23 September 2020, 01:01
hendry xu
Level 0
23 July 2020, 17:20
how is this hard?
Level 1, Toronto, Canada
24 July 2020, 01:28
stfu hendry you're just a hater
Bartłomiej Błaszczyk
Level 0, Katowice
21 August 2020, 20:52
Level 7, Lübeck, Deutschland
20 July 2020, 11:17
Lol, I found it harder than it looks like