Q&A Discussies
print( 9 ** (1/3) )
1 Stem
11 Antwoordenprint( input()*input() ) Error
0 Stemmen
2 Antwoordenprint( 9 ** (1/2) )
2 Stemmen
4 Antwoordenprint( 7 and '0' and 1)
2 Stemmen
5 Antwoordenfor i in range(0,20, ): print( )
0 Stemmen
1 AntwoordWhat is print( 2 * (2 + 2 ) )
-3 Stemmen
2 AntwoordenIf 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 Stemmen
2 AntwoordenPopulair vandaag
Pointers cpp
2 Votes
Is pro worth the money ?
1 Votes
Coding for Cybersecurity
0 Votes
Drawing images in java
2 Votes