code: def isconstant(args, quoted=False):
      
      check = lambda c: isbool(c) or isnumber(c) or isstring(c, quoted)
      if isinstance(args, list):
          return all(map(check, args))
      else:
          return check(args)
docs: Checks if value is a boolean, number or string.