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
How to improve code readability
0 Votes
Functions
1 Votes
App
0 Votes
I NEED to make a game
0 Votes
Please help with the output
0 Votes
Grouping data is not working
0 Votes
Use of flag
0 Votes