Well, from what I understand, you want to print the written answer on Tkinter’s window. I couldn’t understand if you want to print on the terminal or the window itself. I’ll do a demonstration for each of the possibilities, right? Come on.
Printing the answer on the terminal
from tkinter import *
root = Tk()
#Criando o frame e estabelecendo configurações
arq = Frame(bg = "lightgrey")
arq["padx"] = 80
arq["pady"] = 5
arq.pack(fill='both', expand=True)
#Criando espaço para input no frame
inp = Entry(arq)
inp["width"] = 71
inp.configure(font = "Quicksand 12", bg = "white")
inp.pack(side=LEFT)
#Função para exibir o valor dado no terminal
def exibir():
print(inp.get())
#Criando botão para imprimir
bot_visualizar = Button(root, text = "Imprimir", command = exibir)
bot_visualizar.pack()
root.mainloop()
Printing the answer in the window
from tkinter import *
root = Tk()
#Criando o frame e estabelecendo configurações
arq = Frame(bg = "lightgrey")
arq["padx"] = 80
arq["pady"] = 5
arq.pack(fill='both', expand=True)
#Criando espaço para input no frame
inp = Entry(arq)
inp["width"] = 71
inp.configure(font = "Quicksand 12", bg = "white")
inp.pack(side=LEFT)
#Função para exibir o valor dado no terminal
def exibir():
l = Label (arq, text= inp.get())
l["padx"] = 20
l["pady"] = 5
l.configure(font = "Quicksand 12 bold", bg = "lightgrey")
l.pack (side="left",fill="y")
#Criando botão para imprimir
bot_visualizar = Button(root, text = "Imprimir", command = exibir)
bot_visualizar.pack()
root.mainloop()
.pack() returns None, vc is probably not using the exact lines in the terminal and script
– Elton Nunes