how to create labels in tkinter python code example
Example 1: python tkinter getting labels
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
Example 2: Adding label in tkinter
>>> greeting = tk.Label(text="Hello, Tkinter")