# Kimi language interpreter in Python 3
# Anjana Vakil
# http://www.github.com/vakila/kimi

def complain_and_die(message):
    print(message)
    quit()

def assert_or_complain(assertion, message):
    try:
        assert assertion
    except AssertionError:
        complain_and_die(message)


def throw_error(err_type, message):
    error = err_type.upper() + " ERROR!"
    print(error, message)
    quit()

# Kimi language interpreter in Python 3
# Anjana Vakil
# http://www.github.com/vakila/kimi

def complain_and_die(message):
    print(message)
    quit()

def assert_or_complain(assertion, message):
    try:
        assert assertion
    except AssertionError:
        complain_and_die(message)


def throw_error(err_type, message):
    error = err_type.upper() + " ERROR!"
    print(error, message)
    quit()

def assert_or_throw(assertion, err_type, message):
    try:
        assert assertion
    except AssertionError:
        throw_error(err_type, message)

Add assert_or_throw()