Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урокОбсуждения
try-except & Boolean
1 голос
3 ответов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 ответовАктуальное сегодня
Image doesn't load on html
1 Votes
Remove from a slice of a list
1 Votes
HTML CSS - Filter: brightness()
0 Votes
Error
0 Votes
Questions
0 Votes
Need help pls
1 Votes
Why it's giving error
1 Votes
Questions
0 Votes