Unable to invoke TK() after importing tkinter

import tkinter as tk
root = tk.TK()

error : ‘AttributeError: module ‘tkinter’ has no attribute ‘TK’. Did you mean: ‘Tk’?

I’ve tried many ways. here is screenshot.

anyone can help?

As suggested in the error message, try Tk instead of TK. That’s uppercase T lowercase k; no uppercase K.

1 Like

That’s a silly mistake, sorry to ask the question.

1 Like