「python入門」break、continueとrange()の使い方

1.breakの使い方
for tt in range(12):
print tt
if tt == 5
break

2.continueの使い方
for tt in range(2, 22):
if tt % 2 == 1:
print(“奇数”, tt)
continue

3.range()の使い方
for aa in range(6, 21):
print(aa)

Comments are closed.