I know that for python 3 the break command is used to end a program prematurely but how does the program know when to end | SoloLearn: Learn to code for FREE!

0

I know that for python 3 the break command is used to end a program prematurely but how does the program know when to end

This is because the break is still part of the program and the initial program cannot be accessed during the execution of the program so how exactly do u choose where it ends or is it ok controlled by the ide https://www.sololearn.com/discuss/1336597/?ref=app https://www.sololearn.com/discuss/267949/?ref=app

5/10/2020 5:09:53 PM

Kody

2 Answers

New Answer

+1

The break statement allows you to break out a loop prematurely, to end the whole program prematurely....use exit().

0

Kody Do you have any question