Did I miss something? Tkinter label won't show
I tried to make a guessing game with tkinter and for some reason it won't
work, here's my code.
from tkinter import *
from random import randint
app = Tk()
app.title('Guess the number')
app.geometry('400x300')
ment = IntVar()
def rand():
ges = ment.get()
num = randint(1, 10)
if ges == num:
Label1(app, text='Correct!').pack()
elif ges != num:
Label1(app, text='HAHA no.').pack()
rand = Label(app, text='Guess the secret number between 1 - 100').pack()
guess = Entry(textvariable=ment).pack()
guess_button = Button(app, text='Guess!', command=rand).pack()
app.mainloop()