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