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