title: How to reassign object to a variable in python?
body: <p>If I assign a variable (in this case b) to a button and put it on screen with pack(), then later reassign b to another data type, how do I access that button so that it can be deleted or otherwise referred to? I guess the question could be asked about any data type or object, but this is case stands out because the button is left on the screen. Example:</p>
  
  <pre><code>import tkinter as tk
  
  root=tk.Tk()
  root.geometry('300x300')
  
  b=tk.Button(root, text="button b")
  b.pack()
  b=1
  
  root.mainloop()
  </code></pre>