Which of the following loop types executes at least once, irrespective of the test condition?

  • do-while loop
  • for loop
  • until loop
  • while loop
A do-while loop in Python executes at least once, irrespective of the test condition, as the condition is checked after the loop body.
Add your answer
Loading...

Leave a comment

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