import tkinter as to
window = tk.Tk()
window.geometry('340x110')
def final():
for i in field.get():
answer = tk.Label(text= chr(ord(i)+2))
answer.pack()
text = tk.Label(text="String Encrypt", font=(30))
text.place(x=100)
text2 = tk.Label(text="Enter The Word/Sentence: ")
field = tk.Entry(width='30')
text2.place(x=0, y=30)
field.place(x=150,y=33)
but = tk.Button(command=final, text="Encrypt")
but.place(x=140, y=60)
window.mainloop()
This is the code. Outputs are coming in new line for every iteration. How can we get in the same line??