Jan-27-2019, 08:50 PM
it a question from at total beginner, so its probably stupid, but bear with me.
|
whats the difference between sys.exit() and break?
|
|
Jan-27-2019, 08:50 PM
it a question from at total beginner, so its probably stupid, but bear with me.
Jan-27-2019, 09:46 PM
The break statement exits a loop. The sys.exit function exits Python altogether.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures |
|
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| python difference between sys.exit and exit() | mg24 | 1 | 7,151 |
Nov-12-2022, 01:37 PM Last Post: deanhystad |
|
| Whats wrong with the elif? | inunanimous93 | 3 | 4,461 |
Nov-30-2020, 03:58 AM Last Post: deanhystad |
|
| Whats Wrong!? | rjay81 | 3 | 3,621 |
May-13-2020, 08:02 PM Last Post: rjay81 |
|
| Can u see this code and tell whats wrong with it? | AhmadKamal | 14 | 9,233 |
Apr-29-2020, 11:09 AM Last Post: jefsummers |
|
| Whats a good design/approach? | hshivaraj | 1 | 2,834 |
Sep-16-2019, 01:44 AM Last Post: snippsat |
|
| elevator simulator...whats the wrong at this code? | tasos710 | 5 | 8,007 |
Jun-11-2019, 01:38 AM Last Post: micseydel |
|
| Whats wrong with this code? | student1 | 1 | 3,448 |
May-18-2018, 04:19 PM Last Post: skorpius_ |
|
| Using break to exit a loop help | JJG | 4 | 6,004 |
Dec-09-2017, 03:02 AM Last Post: JJG |
|
| I have no clue whats wrong... | Jack_03 | 1 | 3,893 |
Sep-28-2017, 05:36 PM Last Post: nilamo |
|
| Whats wrong with line 12? | brimalm | 2 | 4,652 |
Sep-11-2017, 12:23 PM Last Post: brimalm |
|