title: how to create a entry box that understands key words in tkinter
body: <p>How do i make the netry box pick out a key word from array x (e.g. if
   i type "my screen isnt working", it would look through array x to find
   the keyword 'screen' and give the response "is your screen cracked")?</p>
  
  <blockquote>
  <pre><code>from tkinter import *
  
  from tkinter import messagebox
  
  x = ['screen','speakers','earphone jack','button','battery','storage']
  
  y = ['is the screen cracked','have the speakers been in conatct with
  water','has the earphone jack been in contact with water','is your
  button broken','is your battery older than 2 years','is the storage
  you have less than the required']
  
  z = ['change your screen','put your phone in uncooked rice overnight
  and check in the morning','put your phone in uncooked rice overnight
  and check in the morning','go to a phone store and buy a new
  button','change your phone battery','delete data to have enough
  storage space for you to download whatever you need']
  
  def problem1_1():
  
  i =  ' '.join(x)
  
  i.split(' ')
  
  p = problem1.get().lower()
  
  if p in x:
  
      questions =  messagebox.askyesno(title = "question", message =y[x.index(p)])
  
      if questions == True:
  
          messagebox.showinfo(title =" solution", message = z[x.index(p)])
  
      else:
  
          messagebox.showinfo(title =" solution", message = "go to the nearest phone repair store and recieve direct help")
  
  else:
  
      messagebox.showinfo(title = "ERROR",message ="Please enter a valid category of issue you have")
  
  return
  myGui = Tk()
  
  problem1 = StringVar()
  
  myGui.geometry("500x500+200+200")
  #this makes the size and positioning of the page GUI
  
  myGui.title("troubleshooting system")
  #this makes the title at the top of the page GUI
  
  myheader1 = Label(text = "Welcome To the Phone Troubleshooting
  System",font = ("weight bold",16)).pack()
  #This creates a header at the top-centre of the page GUI
  
  header2 = Label(text = '''What seems to be the issue with  your phone?
  Is it an issue with your : screen, speakers, button,earphone jack,
  battery or storage''',fg = 'blue',bg = 'yellow', font =("weight bold",
    16) ).pack()
  
  ientry = Entry(textvariable = problem1).pack()
  
  OkButton = Button(text = 'OK', command = problem1_1).pack()
  
  myGui.mainloop()
  #This closes the Tkinter function and runs it
  </code></pre>
  </blockquote>