title: Python quiz, using tkinter
body: <pre><code>from tkinter import *
  import tkinter as tk
  
  q = 0
  s = -1
  count = 0
  correct = 0
  incorrect = 0
  
  question = ["Is this a quiz","Are you sure","Dont be","see its not a quiz"]
  
  answer = ["yes","yes","ok","ok"]
  answer_cap = ["Yes","Yes","Ok","Ok"]
  
  root = Tk()
  
  name = tk.Label(root,text = "GUI Quiz")
  name.pack()
  
  label = tk.Label(root,text = question[0])
  label.pack()
  
  entry = tk.Entry(root)
  entry.pack()
  
  
  
  def out():
      global q,correct,incorrect,s,count
      count = count + 1
      ans = entry.get()
      print (ans)
      print (question[q])
      print (answer[q])
      if count &lt; 4:
            if answer[q] or answer_cap[q] == ans :
                q = q + 1
                entry.delete(0, END)
                correct = correct + 1
                label.config(text = question[q])
            else:
                q = q + 1
                entry.delete(0, END)
                incorrect = incorrect + 1
                label.config(text = question[q])
      else:
          entry.delete(0, END)
          label.config(text = "Correct: "+str(correct) + " Incorrect:   "+str(incorrect))
  
  
  def stop():
      global q,correct,incorrect
      q = 0
      correct = 0
      incorrect = 0
      entry.delete(0, END)
      label.config(text = question[0])
  
  button = tk.Button(root,text = "Submit",command = out)
  button.pack()
  
  button_two = tk.Button(root,text = "Restart",command = stop)
  button_two.pack()
  
  
  root.mainloop()   
  </code></pre>
  
  <p>nothing actually wrong with the code its just how I'm doing it. When I run module it will ask my four questions and I will give the answer, but no matter what I put it will say I got 3 correct and none wrong. Am I missing something obvious or is it how I layed out the code.</p>