I have noticed that on any python 3 program no matter how basic it is if you press CTRL c it will crash the program for example:
test=input("Say hello")
if test=="hello":
print("Hello!")
else:
print("I don't know what to reply I am a basic program without meaning :(")
If you press CTRL c the error will be KeyboardInterrupt is there anyway of stopping this from crashing the program?
The reason I want to do this is because I like to make my programs error proof, and whenever I want to paste something into the input and I accidentally press CTRL c I have to go through my program again..Which is just very annoying.