Q&A Discussies
re error - multiple repeat
0 Stemmen
1 AntwoordChallenge time out/latency
4 Stemmen
2 AntwoordenWrong answers
2 Stemmen
3 AntwoordenHelp pls
0 Stemmen
8 AntwoordenSample code not working
0 Stemmen
3 AntwoordenCourse topics not opening
0 Stemmen
4 AntwoordenSpam Eggs?
0 Stemmen
5 AntwoordenWhy -4%1.5 in python shows 0.5??
0 Stemmen
4 AntwoordenWhy a build error occours
0 Stemmen
2 AntwoordenSoloLearn compile limit?
0 Stemmen
8 AntwoordenSuggestion
2 Stemmen
2 AntwoordenWhat are logical errors?
2 Stemmen
4 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 Antwoordencan you help me?
0 Stemmen
2 AntwoordenPopulair vandaag
Pointers cpp
3 Votes
Is pro worth the money ?
1 Votes
Coding for Cybersecurity
0 Votes
Pointers in c#
0 Votes
Drawing images in java
2 Votes