my code is the following.
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()
All I am trying to do is to display both entry 1 and entry 2 input when both are assigned to the same variable.
Note that I am a Python newbie.