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