Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
def divide(a, b): assert b != 0, "Denominator must not be zero" return a / b print(divide(10, 2)) # 5.0 print(divide(10, 0)) # AssertionError
Result
Open