def load_data():
    list_of_tuples = []
for x, y, label in data:
    list_of_tuples.append((x, y))
return list_of_tuples

def load_data_2():
    return [(x, y) for x, y, label in data]

def load_data_3():
    return [t[:2] for t in data]
Понимание этой строки: list_of_tuples = [(x,y) для x, y, метка в data_one]