from tkinter import *


rot = Tk()

namn = simpledialog.askstring(title="Ge namn", prompt="Vad heter du?")

rot.mainloop()