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