Skip to content
Discussion options

You must be logged in to vote

For example:

for i in range(5):
if i == 3:
break
print(i)
This prints 0, 1, 2 and then stops.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tintcold
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants