Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&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 Respostasprint( 9 ** (1/2) )
0 Voto
3 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
Active NavBar
0 Votes
My format is weird
1 Votes
How to reverse a word?
2 Votes
Ayudenme con el error
1 Votes
how to create a game in python
0 Votes
C++
1 Votes
Automation
1 Votes