I am trying to make a label, but I can\'t define the root variable! Please help me!
Update: I am using an online Python editor called repl.it
In a comment you wrote:
I'm using an online editor for python as i do not have it downloaded.
You can't run tkinter via a web server. There is simply nothing you can do to make that work.
Repl.it doesn't currently support tkinter but it supports a GUI library called REMI. You can see an example here: https://repl.it/@amasad/tictactoe