assert value is a number python code example Example: assert integer python assert type(num) is int,"num must be an integer"