def wyznacznik(message, w_list):
i = 0
while i < 4:
w = message.text
w_list.append(w)
msg = bot.send_message(message.chat.id, 'Введи вызначник (w{i})', reply_markup=markup)
i += 1
schet(message, w_list, x1_list, x2_list, x3_list)
def schet(message, w_list, x1_list, x2_list, x3_list):
car_a = x1_list[0]*w_list[0]+x1_list[1]*w_list[1]+x1_list[2]*w_list[2]+x1_list[3]*w_list[3]
car_b = x2_list[0]*w_list[0]+x2_list[1]*w_list[1]+x2_list[2]*w_list[2]+x2_list[3]*w_list[3]
car_c = x3_list[0]*w_list[0]+x3_list[1]*w_list[1]+x3_list[2]*w_list[2]+x3_list[3]*w_list[3]
msg = bot.send_message(message.chat.id, "Машина А = "+str(car_a)+"\n"+"Машина B = "+str(car_b)+"\n"+"Машина С = "+str(car_c)+"\n", reply_markup=markup)
mas = []
k = 1
while k<=5:
mas.append(int (input() ))
k += 1