(problem)
return groups
Check if there is more than 1 group.
Check if there is more than 1 group.
Check if there is more than 1 group .
def _check_groups(problem):
    """Check if there is more than 1 group."""
    groups = problem.get('groups')
    if not groups:
        return False

    if len(set(groups)) == 1:
        return False
    return groups
def _check_groups ( problem ) : groups = problem . get ( 'groups' ) if not groups : return False if len ( set ( groups ) ) == 1 : return False return groups