Okay if you need help with Python come to a free online classroom and get continuous interactive help
As for your particular issue
import tkinter as tk
this simply says import the tkinter library and as an internal reference we will be using
tk
instead of
tkinter
so instead of
tkinter.TK()
where we use the library name to reference one of its methods we use the shorthand version of
tk.TK()
as for
root = tk.TK()
you are assigning to
root
the value return from the call to
tk.TK()
method if you do not now what the Tkinter TK() method returns you would want to consult the Tkinter library documentation as that has nothing to do with python directly