A ____ loop is used to iterate a block of code a specified number of times.

  • do-while
  • for
  • repeat
  • while
In Python, a for loop is commonly used to iterate over a sequence (such as a list) a specified number of times. The for loop iterates over the elements of the sequence, executing the block of code for each element.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *