(self, composition)
return list(composition).count(max_note) == 1
Checks a composition to see if the highest note within it is repeated.

    Args:
      composition: A list of integers representing the notes in the piece.
    Returns:
      True if the lowest note was unique, False otherwise.
Checks a composition to see if the highest note within it is repeated.
Checks a composition to see if the highest note within it is repeated .
def detect_high_unique(self, composition):
    """Checks a composition to see if the highest note within it is repeated.

    Args:
      composition: A list of integers representing the notes in the piece.
    Returns:
      True if the lowest note was unique, False otherwise.
    """
    max_note = max(composition)
    return list(composition).count(max_note) == 1
def detect_high_unique ( self , composition ) : max_note = max ( composition ) return list ( composition ) . count ( max_note ) == 1