While Loops

preview_player
Показать описание
MIT 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016
Instructor: Dr. Ana Bell

This in-class question demonstrates While Loops in Python.

License: Creative Commons BY-NC-SA
Рекомендации по теме
Комментарии
Автор

The right answer should be print "You got out of the Lost Forest!" The online self-quiz has been corrected.

mitocw
Автор

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!

kriswilk
Автор

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!

Fliptheflipflop
Автор

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.

ramazanaktas
Автор

For checking the while loop condition, why don't you add n.upper == RIGHT to accept all possible variations of right?

henrikmanukyan
Автор

I just became a victim of False Consensus Effect

androtech
Автор

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.

jasmeetx
Автор

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!

LauBoonhai
Автор

can't believe they got the wrong answer

ihsannuruliman