New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
OMG! this is, well, Hard!
3 Votes
5 Answers[SOLVED] Problem w/ RobotBarman
-2 Votes
2 AnswersIf 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 Votes
2 AnswersHot today
What's the error in this code?
1 Votes
How to find image links
0 Votes
Py to Exe
0 Votes
I don’t know why but python seems to be harder than java to me does any body else fell like this?
0 Votes
What's wrong with my code?
0 Votes
How I can win more Heart?
0 Votes
TIMER
0 Votes