skyscrapers.py
def check_uniqueness_in_rows(board: list) -> bool:
    """
    Check buildings of unique height in each row.

    Return True if buildings in a row have unique length, False otherwise.

    >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*543215', \
        '*35214*', '*41532*', '*2*1***'])
    True
    >>> check_uniqueness_in_rows(['***21**', '452453*', '423145*', '*543215', \
        '*35214*', '*41532*', '*2*1***'])
    False
    >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*553215', \
        '*35214*', '*41532*', '*2*1***'])
    False
    """
    for line in board[1:-1]:
        if len(set(line[1:-1])) != len(line[1:-1]):
            return False
    return True

    Check buildings of unique height in each row.

    Return True if buildings in a row have unique length, False otherwise.

    >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*543215', \
        '*35214*', '*41532*', '*2*1***'])
    True
    >>> check_uniqueness_in_rows(['***21**', '452453*', '423145*', '*543215', \
        '*35214*', '*41532*', '*2*1***'])
    False
    >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*553215', \
        '*35214*', '*41532*', '*2*1***'])
    False
    
Check buildings of unique height in each row.
Return True if buildings in a row have unique length, False otherwise.


Check buildings of unique height in each row . Return True if buildings in a row have unique length False otherwise .
def check_uniqueness_in_rows(board: list) -> bool:
    for line in board[1:-1]:
        if len(set(line[1:-1])) != len(line[1:-1]):
            return False
    return True
def check_uniqueness_in_rows ( board : list ) -> bool : for line in board [ 1 : - 1 ] : if len ( set ( line [ 1 : - 1 ] ) ) != len ( line [ 1 : - 1 ] ) : return False return True
Check buildings of unique height in each row.
Check buildings of unique height in each row .
"""
    Check buildings of unique height in each row.

    Return True if buildings in a row have unique length, False otherwise.

    >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*543215', \
        '*35214*', '*41532*', '*2*1***'])
    True
    >>> check_uniqueness_in_rows(['***21**', '452453*', '423145*', '*543215', \
        '*35214*', '*41532*', '*2*1***'])
    False
    >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*553215', \
        '*35214*', '*41532*', '*2*1***'])
    False
    """
board
list