I have this simple problem with this code. the purpose is to make a label showing whatever the user has typed in the Entry widget.
def action():
output = tk.Label(master, text = #this should be the user input in the Entry widget)
output.grid(row=2)
import tkinter as tk
master = tk.Tk()
e = tk.Entry(master, bg = 'orange').grid(row=0)
b = tk.Button(master, text = 'do it', bg = 'white', command = action).grid(row = 1)
master.mainloop()