while-else.py
count=0
while count<5:
if count ==1:
break
print(count)
count+=1
else:
print('breakで抜けた場合は実行されない')
Go to list of users who liked
More than 5 years have passed since last update.
count=0
while count<5:
if count ==1:
break
print(count)
count+=1
else:
print('breakで抜けた場合は実行されない')
Register as a new user and use Qiita more conveniently
Go to list of users who liked