Can anyone tell me how to make if statement if the text of button is equal example like this code
from tkinter import *
app = Tk()
def k():
#i know this is wrong so plss correct me
if button1.text == "1":
l = Label(app,text="wow")
l.pack
button1 = Button(app,text="1",command=k).pack()
app.mainloop()
Plss tell me thank you