QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 65

Inside a loop body, what does continue do when Python reaches it?

  1. It skips the rest of this pass and advances.Ճիշտ պատասխան
  2. It exits the innermost loop.
  3. It restarts this same pass from the top.
  4. It exits every enclosing loop.

Բացատրություն

Continue abandons the remaining statements for the current pass and advances the innermost loop toward its next pass. It does not exit the loop, and it does not restart the same pass from the body's first line.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 65: Inside a loop body, what does continue do when Python… · Python Fundamentals · Questena