def formatASet(theSet):
    """Format a set of strings as a string.

    The given set is returned enclosed by braces and with elements
    separated by commas.

    Args:

        theSet (set of str): The set to be formatted.

    Returns: 

        str: A string representing theSet, enclosed by braces and with
             elements separated by commas.

    Example:
        >>> formatASet({'abc', 'd', 'ef'})
        '{d,ef,abc}'
    
    """
    return "{" + ",".join(theSet) + "}"