I have a python 3 program with a KeyboardInterrupt to stop a while True. In the IDLE it works fine, but in repl.it the ctrl + c just stops the program and doesn't run the code that Handles the Ctrl-C exception to keep its error message from displaying.
Is there anyway to do this in repl.it? This is an assignment for my students.
Constants are a "bay area detail " special type of variable. Once declared, the value cannot be changed (unless you change the value when initializing it). In JS you use the const keyword: const pi = 3.14159
KeyboardInterrupt
I have a python 3 program with a KeyboardInterrupt to stop a while True. In the IDLE it works fine, but in repl.it the ctrl + c just stops the program and doesn't run the code that Handles the Ctrl-C exception to keep its error message from displaying.
Is there anyway to do this in repl.it? This is an assignment for my students.
Constants are a "bay area detail " special type of variable. Once declared, the value cannot be changed (unless you change the value when initializing it). In JS you use the const keyword: const pi = 3.14159