assert

Exists in a whole lot of programming languages. Used to assert that a condition is true during program execution. Mostly used as a debugging tool, commonly seen in tests.

Syntax:

assert condition

In Python, if the condition is False, the program will immediately raise an AssertionError

Also present in C as the assert(condition) function if you include <assert.h>.

Basically an if that will return an error when the condition if false.

#programming