Q&A Discussões
print( 9 ** (1/3) )
1 Voto
11 Respostasprint( 9 ** (1/2) )
2 Votos
4 Respostasprint( 7 and '0' and 1)
2 Votos
5 RespostasWhat is print( 2 * (2 + 2 ) )
-3 Votos
2 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
Python and unsigned int
0 Votes
Saturn League badge
2 Votes
Sololearn keeps crashing
1 Votes
Lua course?
2 Votes
certificate
1 Votes
Adding an image to my html
0 Votes
CSS
1 Votes
Not able to activate account
0 Votes