In [1]:
sample_int =1
while sample_int <= 10:
print(sample_int)
sample_int = sample_int + 1
In [2]:
i=0
while i<5:
if i ==2:
i+=1
continue
print(i)
i+=1
In [3]:
i=0
while i<5:
if i ==2:
break
print(i)
i+=1
コメントする