Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
try-except & Boolean
1 Voto
3 RespostasPython
0 Voto
5 RespostasIf 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 RespostasQuente hoje
What is the bug here??
0 Votes
Help me
1 Votes
Sololearn bug
1 Votes
Does any one know a free app to practice coding, i mean practicing things that you learn from here?
0 Votes
Roblox full version
0 Votes
Help!
1 Votes
Career in cybersecurity
1 Votes