Sesiones de PyR
exeption finally
1 Voto
3 RespuestasException handling
2 Votos
2 RespuestasWhat is the problem?
1 Voto
6 Respuestasjava multiple exception
0 Votos
1 Respuestajava Exception
2 Votos
3 RespuestasHow fix the error
3 Votos
9 RespuestasIf except can handle common errors very well, doesn't that make the use of raise redundant inside of a try-except block?
For example:
try:
print( 5 / 0 )
except ZeroDivisionError:
raise ValueError("An error occurred!")
What's the difference if we handle it this way:
try:
print( 5 / 0 )
except (ZeroDivisionError, ValueError):
print("An error occurred!")
3 Votos
2 RespuestasWhat is an exception
3 Votos
2 RespuestasTry/catch body
1 Voto
1 RespuestaException
1 Voto
2 RespuestasEn tendencia hoy
What's wrong in my code?
4 Votes
App Development
1 Votes
GUI-Based Python code in Webpage
3 Votes
My Missing Courses
1 Votes
Are '\0' and NULL the same?
1 Votes
cyber security
0 Votes
career in cybersecurity
0 Votes
Number addition
0 Votes