examples/functions/assert.py
from __future__ import print_function

x = 2 + 2
assert(x == 4)
print('x OK')


y = 2 + 3
assert(y == 4)
print('y OK')
x OK
AssertionError