In python when i run TKinter code ,Error come

from tkinter import *

r = TK()

mainloop()
when i run this program came,
Name ‘tkinter’ is not defined

How can i resolve this pronlem