LinkedIn Python Skill Assessment Quiz Answers

What will happen if you use a while loop and forget to include logic that eventually causes the while loop to stop?

Latest Update on 25th January, 2022 by Certification Course Answers

What will happen if you use a while loop and forget to include logic that eventually causes the while loop to stop?

  1.  Nothing will happen; your computer knows when to stop running the code in the while loop.
  2.  You will get a KeyError.
  3.  Your code will get stuck in an infinite loop.
  4.  You will get a WhileLoopError.

Correct Answer:

  •  Your code will get stuck in an infinite loop.

Latest Updates

No posts found in this category.