Dyskusje Q&A
OMG! this is, well, Hard!
3 głosów
5 odpowiedzi[SOLVED] Problem w/ RobotBarman
-2 głosów
2 odpowiedziIf 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 głosów
2 odpowiedziPopularne dzisiaj
is python better than JS
0 Votes
Print("hello ,world!"[7:13][2])
0 Votes
How can i improve my code
1 Votes
time complexity
1 Votes
How to Start Programming ?
0 Votes
Python
0 Votes
Any Other Solution?
1 Votes