0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Python】繰り返し処理_個人的備忘録

Last updated at Posted at 2021-01-15

#繰り返し処理(while命令)
"""
【構文】
while 条件式
   --条件式がTureである間、繰り返し処理する
"""
i = 1
while i < 5:
 print(i,'番目のループ')
 i += 1

"""
インデントに注意!
i += 1が認識されず、ずっとループしていた。
"""

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?