Обсуждения
how the last one will become 3???
2 голосов
4 ответовIf 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 голосов
2 ответовCan you help me in this code?
-4 голосов
9 ответовАктуальное сегодня
TICTACTOE
1 Votes
Error
0 Votes
Learn python
2 Votes
BIG DOUBT🤔🤔🤔🤔
2 Votes
Need help (French)
1 Votes
Help for study
0 Votes
Spying on me
1 Votes
Where's PHP and Ruby courses?
1 Votes
What's an unsigned int?
0 Votes