# Import the Tkinter library from tkinter import * # Create the main/root window root = Tk() # Create a Label widget with "Hello World!" text label = Label(root, text="Hello World!") # Add the label to the window and display it label.pack() # Start the Tkinter event loop to keep the window running root.mainloop()