「python」whileループのサンプル
書式
while 条件式:
サンプルコード
i = 8
while i < 12:
print(i)
i += 1
i = 8
while i < 12:
print(i)
i += 1
i = 8 while i < 12: print(i) i += 1
結果
8
9
10
11
Coding Changes the World
書式
while 条件式:
サンプルコード
i = 8 while i < 12: print(i) i += 1
結果
8
9
10
11