'openpyxl how to display multiple values from a range

I made a program that outputted values from a range of numbers. And I tried to complicate it, to create an interface where I had to display the values from the button press. But for some reason I only get 1 last value. At the same time, everything works as it should through the print.

def Excel123():

    wb = openpyxl.reader.excel.load_workbook(filename="resd1.xlsx")
    wb.active = 0
    sheet = wb.active

    for i in range(9, 14):
        x1 = i, sheet.cell(row=i, column=23).value
        print(i, sheet.cell(row=i, column=23).value)
    v.set(x1)
    v = StringVar()
    Label(root, textvariable=v).pack()
    Button(root, text="result", width=15, padx=15, pady=5, command=resd1).pack()
    root.mainloop()


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source