+ 2
The different between raise and assert
What's the difference between raise and assert? Aren't they used to raise error?
1 Réponse
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