Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
Spam Eggs?
0 Vote
5 RéponsesSuggestion
2 Votes
2 RéponsesWhat are logical errors?
2 Votes
4 RéponsesIf 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 Réponsescan you help me?
0 Vote
2 RéponsesAujourd'hui en vedette
How to remember what you learned
2 Votes
Find saved code
1 Votes
Usage of Carriage Return (`\r')
3 Votes
HACKER
1 Votes
I want a little help.
0 Votes
What is the output of this code?
0 Votes
How to build logic?
0 Votes