Robotics & Artificial Intelligence

Fill in the blanks:

  1. ……………. is used to repeat a block of code until a certain condition is met.
  2. ……………. statement in a loop is used to break the execution of the loop.
  3. ……………. keyword is used to create an empty loop.
  4. ……………. statement is used to skip the current iteration of the loop and move to the next.
  5. ……………. loop is used to iterate over a sequence of items.

Python Control Flow

1 Like

Answer

  1. while loop is used to repeat a block of code until a certain condition is met.
  2. break statement in a loop is used to break the execution of the loop.
  3. pass keyword is used to create an empty loop.
  4. continue statement is used to skip the current iteration of the loop and move to the next.
  5. for loop is used to iterate over a sequence of items.

Answered By

3 Likes


Related Questions