from tkinter import * root = Tk() l = Label(root, text='Hello World!!') #Creates the label with text hello world l.pack() #Makes it visible to us
Here is what the above code is Doing:
1. We create a Label widget. The first parameter of the Label widget is text.
2. We pack it. This displays the widget on the screen.