# Import the necessary packages:
import math,random,tkinter,sys,os
from tkinter import *
from tkinter import ttk
from random import sample
import tkinter as tk
# Widgets:
window=Tk()
ch1=Entry(window,fg="black", bg="white", width=50)
ch2=Entry(window,fg="black", bg="white", width=50)...