Careful! The answer selected by the majority of the class (and supported by the instructor!) is INCORRECT. Program execution will SKIP the while loop because "Right" is NOT equal to "right". The output will be "You got out of the Lost Forest!". Hopefully this video (and the online self-quiz on MIT OCW) will be corrected soon!
my heart sank a little going against the majority of the votes and the instructors instructions. but then I checked the majority of the comments in this section and I'm all good again.
I have already downloaded all the videos and watching it offline, only reason I have just came here to check whether they have corrected. As it turns out, they did in the comments section.
I thought if you entered "Right", the answer should be "You got out of the Lost Forest". It was confirmed when I tried it out in the editor. But in the video, the lecturer mentioned that the answer was "You're in the Lost Forest. Go left or right?" I'm confused!
The right answer should be print "You got out of the Lost Forest!" The online self-quiz has been corrected.
Thanks, I had to double take for a minute
Thanks, I was super confused
I almost lost my marbles.
Careful! The answer selected by the majority of the class (and supported by the instructor!) is INCORRECT. Program execution will SKIP the while loop because "Right" is NOT equal to "right". The output will be "You got out of the Lost Forest!".
Hopefully this video (and the online self-quiz on MIT OCW) will be corrected soon!
thanks you for this
Exactly my thought, since it only has one value to compare if it’s does not match then it’ll exit the loop and proceed to the next line
This is a case where having the comments enabled on a video is so important, it's annoying that they're disabled on so many educational videos!
my heart sank a little going against the majority of the votes and the instructors instructions. but then I checked the majority of the comments in this section and I'm all good again.
I have already downloaded all the videos and watching it offline, only reason I have just came here to check whether they have corrected. As it turns out, they did in the comments section.
I just became a victim of False Consensus Effect
For checking the while loop condition, why don't you add n.upper == RIGHT to accept all possible variations of right?
I thought if you entered "Right", the answer should be "You got out of the Lost Forest". It was confirmed when I tried it out in the editor. But in the video, the lecturer mentioned that the answer was "You're in the Lost Forest. Go left or right?" I'm confused!
0:21
thank you ,mit
can't believe they got the wrong answer