import random
from tkinter import Tk, Listbox
root = Tk()
lab = Listbox(root)
for i in range(5):
lab.insert(i, random.randint(1, 100))
print(lab.size())
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import random
from tkinter import Tk, Listbox
root = Tk()
lab = Listbox(root)
for i in range(5):
lab.insert(i, random.randint(1, 100))
print(lab.size())