how to align text in tkinter

Label(root, text='Pack', anchor='w').pack(fill='both')
# anchor='w' ---- w  for left
# anchor='e' ---- e  for right
# anchor='center' ---- center  for center

Here is what the above code is Doing:
1. We create a Label widget.
2. We pack it.
3. We give it a text option, which is the text we want it to display.
4. We give it an anchor option, which is where we want the text to be displayed.