<jupyter_start><jupyter_text>Convert the above TUI Python program to a GUI form<jupyter_code>def main():
    # Find the least number among three numbers
    L = []
    num1 = eval(input("Enter the first number:"))
    L.append(num1)
    num2 = eval(input("Enter the second number:"))
    L.append(num2)
    num3 = eval(input("Enter the third number:"))
    L.append(num3)
    print("The smallest number among the three is:",str(min(L)))
main()

from tkinter import *

window = Tk()
window.title("Find the smallest number")
window.geometry("500x400+20+10")

def findsmallest():
    S = []
    S.append(eval(conOfent2.get()))
    S.append(eval(conOfent3.get()))
    S.append(eval(conOfent4.get()))
    conOfLargest.set(max(S))

lbl1 = Label(window, text = "The Program that Finds the smallest Number")
lbl1.grid(row=0, column=1, columnspan=2,sticky=EW)
lbl2 = Label(window,text = "Enter the first number:")
lbl2.grid(row=1, column = 0,sticky=W)
conOfent2 = StringVar()
ent2 = Entry(window,bd=3,textvariable=conOfent2)
ent2.grid(row=1, column = 1)
lbl3 = Label(window,text = "Enter the second number:")
lbl3.grid(row=2, column=0)
conOfent3=StringVar()
ent3 = Entry(window,bd=3,textvariable=conOfent3)
ent3.grid(row=2,column=1)
lbl4 = Label(window,text="Enter the third number:")
lbl4.grid(row=3,column =0, sticky=W)
conOfent4 = StringVar()
ent4 = Entry(window,bd=3,textvariable=conOfent4)
ent4.grid(row=3, column=1)

btn1 = Button(window,text = "Find the smallest no.",command=findsmallest)
btn1.grid(row=4, column = 1)
lbl5 = Label(window,text="The smallest number:")
lbl5.grid(row=5,column=0,sticky=W)
conOfLargest = StringVar()
ent5 = Entry(window,bd=3,state="readonly",textvariable=conOfLargest)
ent5.grid(row=5,column=1)


mainloop()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15750708215297451, 'fraction_numerical': 0.039660056657223795, 'mean_word_length': 5.980237154150197, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '602210', 'license': 'Apache-2.0', 'n_tokens_mistral': 681, 'n_tokens_neox': 672, 'n_words': 137, 'path': 'GolveoBryan_FinalExam.ipynb', 'repo_name': 'golveobryan/OOP-58002', 'size': '1765'}