from tkinter import *
root = Tk()
root.geometry("850x900")
def pri():
user = e.get()
print(user)
e = Entry(root).pack()
b = Button(root, text = "Submit", command=pri).pack()
root.mainloop()
When I run this code, I get the following error:
"AttributeError: 'NoneType' object has no attribute 'get'"