title: I'm having issues with using an if funtion in tkinter, am i using it correctly?
body: <p>I'm writing a basic piece of Tkinter code for some school work but I can't seem to get the if function I created to work. Originally it would show only the result of clicking 'yes' but now it only shows the results of clicking 'no'. Is there something wrong with the way I'm formatting the code in using the if function?</p>
  <pre><code>  tip = tkinter.messagebox.askyesno(&quot;Tip&quot;, &quot;Would you like to add a tip?&quot;)
  if tip == 'yes':
      tkinter.messagebox.showinfo(&quot;Total&quot;, (&quot;Your new total is £&quot;, total*1.05))
  else:
      tkinter.messagebox.showinfo(&quot;Understood&quot;, (&quot;Your total remains as £&quot;, total,))
  </code></pre>