fromtkinterimport*# Function for checking the# key pressed and updating# the listboxdefcheckkey(event):value=event.widget.get()print(value)# get data from lifvalue=='':data=lelse:data=[]foriteminl:ifvalue.lower()initem.lower():data.append(item)# update data in listboxupdate(data)defupdate(data):# clear previous datalb.delete(0,'end')# put new dataforitemindata:lb.insert('end',item)# Driver codel=('C','C++','Java','Python','Perl','PHP','ASP','JS')root=Tk()#creating text boxe=Entry(root)e.pack()e.bind('<KeyRelease>',checkkey)#creating list boxlb=Listbox(root)lb.pack()update(l)root.mainloop()