Questions tagged as 'python-3.x'

1
answer

How do I stop the For when the range is 5? [closed]

How do I stop the For cycle when it reaches a certain condition? For example, it would be when c is equal to 5. for c in range(1,10): print('a,b,c') if c % 5: break Next, a function will be used, but I'd like to understand the flow...
asked by 15.08.2018 / 22:59