Python "while" Loops

Iteration means executing the same block of code over and over, potentially many times. A programming structure that implements iteration is called a loop.

イテレーションとは、同じコードブロックを何度も実行することです。反復処理を行うプログラミング構造をループと呼ぶ。

In programming, there are two types of iteration, indefinite and definite:

プログラミングにおける反復処理には、不定型と定型の2種類がある。

With indefinite iteration, the number of times the loop is executed isn’t specified explicitly in advance. Rather, the designated block is executed repeatedly as long as some condition is met.

不定反復では、ループを実行する回数をあらかじめ明示的に指定するのではなく、指定したブロックを実行する。不定反復では、ループの実行回数をあらかじめ明示せず、条件が満たされる限り、指定したブロックを繰り返し実行する。

With definite iteration, the number of times the designated block will be executed is specified explicitly at the time the loop starts.

確定反復では,ループの開始時に,指定したブロックの実行回数を明示的に指定します。


A while loop statement in Python programming language repeatedly executes a target statement as long as a given condition is true. 

プログラミング言語Pythonのwhileループステートメントは、与えられた条件が真である限り、対象のステートメントを繰り返し実行します。

この記事が気に入ったらサポートをしてみませんか?