Nieuws
If the number 0 is entered then, instead of crashing, it will accept the value and run the except block (print ("You can't divide by zero")). Represented in Python: ...
I've reached the point where I have to implement the divide operator, and I'm wondering how to best handle a divide by zero error? I seem to have only three possible ways to handle this case. 1.
One task can hit a fatal divide-by-zero and fail to complete its work while the other tasks carry on. This might be a good compromise between correctness and completeness in this problem domain.
Resultaten die mogelijk niet toegankelijk zijn voor u worden momenteel weergegeven.
Niet-toegankelijke resultaten verbergen