title: Python Tkinter how to take the input from multiple Entry widgets stored in one variable
body: <p>my code is the following.</p>
  
  <pre><code>from tkinter import *
  def TakeInput():
      print(tb.get()) #This will print Entry1 input
      print(tb.get()) #This will print Entry2 input
  tk=Tk()
  #Entry 1
  tb=Entry(tk) #Both Entry1 and Entry2 are stored in the same variable: tb
  tb.pack()
  #Entry 2
  tb=Entry(tk) #Both Entry1 and Entry2 are stored in the same variable: tb
  tb.pack()
  #Button
  b=Button(tk,text="PrintInput",command= TakeInput)
  b.pack()
  tk.mainloop()
  </code></pre>
  
  <p>All I am trying to do is to display both entry 1 and entry 2 input when both are assigned to the same variable.</p>
  
  <p>Note that I am a Python newbie.</p>