0
Errors Vs Exceptions
What is difference between Errors & Exceptions ?
2 Respostas
+ 2
Exceptions can be handle by your program but errors can't..
https://www.sololearn.com/discuss/3029432/?ref=app
+ 2
From Python docs you can read: ”Errors detected during execution are called exceptions”.
You can catch the exception with an try / except statment.
try:
n = int(input())
except ValueError:
print(”Error detected”)
https://code.sololearn.com/caVHKuzjOn2J/?ref=app