Unused import statement 'from tkinter import *' 1

Unused import statement ‘from tkinter import *’

from tkinter import *

root = Tk()

root.mainloop()

Here is what the above code is Doing:
1. We import the Tkinter module.
2. We create a Tkinter variable called root.
3. We use the Tkinter variable to create a window.
4. We use the mainloop() method to run the window.

Similar Posts