def is_list_of_ints(intlist):
 if (not isinstance(intlist, list)):
  return False
 for i in intlist:
  if (not isinstance(i, int)):
   return False
 return True

def is_list_of_ints ( intlist ) : if ( not isinstance ( intlist , list ) ) : return False for i in intlist : if ( not isinstance ( i , int ) ) : return False return True
return true if list is a list of ints .