def dict_in(value):
    '''
        Checks for the existence of a dictionary in a list

        Arguments:
        value -- A list

        Returns:
        A Boolean
    '''
    for item in value:
        if isinstance(item, dict):
            return True
    return False

def dict_in(value):
    '''
        Checks for the existence of a dictionary in a list

        Arguments:
        value -- A list

        Returns:
        A Boolean
    '''
    return any(isinstance(item, dict) for item in value)

Make the dict_in function sleeker and sexier
Make the dict_in function sleeker and sexier

  def dict_in(value):
      '''
          Checks for the existence of a dictionary in a list
  
          Arguments:
          value -- A list
  
          Returns:
          A Boolean
      '''
+     return any(isinstance(item, dict) for item in value)
-     for item in value:
-         if isinstance(item, dict):
-             return True
-     return False
  
Make the dict_in function sleeker and sexier
## Code Before:
def dict_in(value):
    '''
        Checks for the existence of a dictionary in a list

        Arguments:
        value -- A list

        Returns:
        A Boolean
    '''
    for item in value:
        if isinstance(item, dict):
            return True
    return False

## Instruction:
Make the dict_in function sleeker and sexier
## Code After:
def dict_in(value):
    '''
        Checks for the existence of a dictionary in a list

        Arguments:
        value -- A list

        Returns:
        A Boolean
    '''
    return any(isinstance(item, dict) for item in value)
