Published
- 1 min read
python except keyboardinterrupt
The solution for this is noted below
python except keyboardinterrupt
Solution
try:
#your code here
print("Hello world!")
except KeyboardInterrupt:
#your code here
print("Keyboard interrupt")
Try other methods by searching on the site. That is if this doesn’t work