This is my code:
from tkinter import *
root = Tk()
hw = Label(root, text="Hello World!")
hw.pack()
root.mainloop()
This is the error i get:
Traceback (most recent call last):
File "/Users/lorisruegg/Documents/Python/tkinter.py", line 1, in <module>
from tkinter import *
File "/Users/lorisruegg/Documents/Python/tkinter.py", line 3, in <module>
root = Tk()
NameError: name 'Tk' is not defined