New course! Every coder should learn Generative AI!
Try a free lesson+ 3
The first one you need to add tkinter before using anything in tkinter. The second one you don't, however, it's discouraged as it can be confused with other existed things in your code.