Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 2
The different between raise and assert
What's the difference between raise and assert? Aren't they used to raise error?
1 ответ
0
Assert is used to test a condition,. If false it return an AssertionError.
Raise is used to throw exception and you can use it throw an AssertionError