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

10th May 2020, 5:09 PM
Kody
3 odpowiedzi
+ 1
The break statement allows you to break out a loop prematurely, to end the whole program prematurely....use exit().
10th May 2020, 5:23 PM
rodwynnejones
rodwynnejones - avatar
0
Kody It seems your question is not a question. Please use the following forum rules and 8 rules to get help from the community. https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community Your question will be reviewed by a team of moderators and will most likely be marked for deletion. https://www.sololearn.com/Discuss/1316935/?ref=app
7th Feb 2021, 1:38 AM
BroFar
BroFar - avatar