In: Computer Science
Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so your output will match the desired output.(In Python)
import tkinter as tk
from tkinter import simpledialog
king=tk.Tk()
king.withdraw()
name=simpledialog.askstring(title="name-box",prompt="what is you name? ")
print("Welcome",name)
or simple code: