Here is a shortened version of my code. I am trying to take the entry that is input for "added_drink" to be printed out in "save_drink". But I can't seem to get pass it correctly. Where is the error in my code?
def save_drink(added_drink):
print("You added" + added_drink.get() + "as a drink.")
def add_drink():
top= Toplevel(root)
top.geometry("750x250")
top.title("Record Drink")
label = Label(top, text= "What drink did you have?").pack()
added_drink = Entry(top, font=6).pack()
added_drink_button = Button(top, text='Add Drink', font=3,
command=lambda: save_drink(added_drink)).pack()