from tkinter import * why we use code example
Example: How to import tkinter in python
# only works in Python 2.x
import Tkinter
# only works in Python 3.x
import tkinter
# only works in Python 2.x
import Tkinter
# only works in Python 3.x
import tkinter