Make a button and close the program when you push it. The mainloop call handles the event loop common in GUI programs. Some tkinter widgets look old-fashioned, but newer variants can automatically ...
Results that may be inaccessible to you are currently showing.