break
- break
i = 0
while True:
print(i)
i += 1
if i >= 7:
break
print("done")
0
1
2
3
4
5
6
done
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
i = 0
while True:
print(i)
i += 1
if i >= 7:
break
print("done")
0
1
2
3
4
5
6
done