i=1 #처음에 몇부터 시작할 건지 정하기
while i>0: #i>0은 언제까지 반복할 건지 정하기
print(i)
if i == 3:
break #반복문을 탈출하다
i=i+1 #반복문의 현재 횟수를 1씩 증가시키기
for i in range(1, 10):
if i == 5:
break
print(i)
print("i가 5가 되어서 반복문을 탈출했습니다.")
To embed this project on your website, copy the following code and paste it into your website's HTML: