def calculate_row_checksum(row):
    """Form the row checksum as the difference between
    the largest and the smallest row items"""
    sorted_row = sorted(row)[0]
    smallest, largest = sorted_row, sorted(row)[-1]
    return largest - smallest