0
x = 7
y = 3
# допустим это индекс списка
index_point = 0
# это индекс кортежа
index = 0
points = [[(1,2),(2,2)], [(0,2),(2,0)]]

# Хотел через .insert попробовать,но увы
points.insert(([index_point], [index], (x, y)))
Ответ:
points = [[(7,3),(2,2)], [(0,2),(2,0)]]
0

1 ответ 1

0
x = 7
y = 6
points = [[(1,2),(2,2)], [(0,2),(2,0)], [(3,0),(3, 3)]]
index_point_area = 1
index_point = 1

# все было куда проще
points[index_point_area][index_point] = (x, y)
print(points)

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.