import M1, random [T1, T2] = [0, 0] while True: [T1, T2] = input("Введите значения T1, T2: ").split(",") [T1, T2] = [int(T1), int(T2)] if (T1 < T2): break print("Значение T1 должно быть меньше значения T2") M = int(input("Введите значение M: ")) if M > T2 - T1: M = T2 - T1 CC = M1.createNumberList(T1, T2, M) KK = [random.randint(T1, T2 - 1) for x in range(500)] HH = M1.createListOfClosestNumbers(CC, KK) print("Список HH:", HH)