While Loops

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 17

  • @mitocw
    @mitocw  7 років тому +115

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

  • @kriswilk
    @kriswilk 8 років тому +123

    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!

    • @elrisitas8508
      @elrisitas8508 7 років тому +1

      thanks you for this

    • @linonator
      @linonator 4 роки тому +1

      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

  • @Fliptheflipflop
    @Fliptheflipflop 2 роки тому +16

    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!

  • @jasmeetx9
    @jasmeetx9 Рік тому +2

    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.

  • @ramazanaktas3699
    @ramazanaktas3699 5 років тому +7

    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.

  • @androtech7885
    @androtech7885 4 роки тому +14

    I just became a victim of False Consensus Effect

  • @henrikmanukyan3152
    @henrikmanukyan3152 Рік тому +1

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

  • @LauBoonhai
    @LauBoonhai 4 місяці тому

    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!

  • @williamwilliams1000
    @williamwilliams1000 7 років тому +10

    0:21

  • @akbarrauf2741
    @akbarrauf2741 8 років тому +2

    thank you ,mit

  • @ihsannuruliman4005
    @ihsannuruliman4005 3 роки тому +1

    can't believe they got the wrong answer