Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
Hi, there are few issues, some of them are obviously because they generate errors, others are not. In general there are several ways to terminate a running program by code. You can use a loop and then exit it if a defined condition meets, or you can use system.exit. In your case break does not work. You have started a while loop, and inside this a function definition is done. It's better to use the while around the function call. My suggestion is that you rework your code. If you still struggle come back and ask again.
13th Nov 2019, 2:57 PM
Lothar
Lothar - avatar