from tkinter import *
a=float(input("a"))
b=float(input("b"))
def abc(x,y):
print(x+y)
root=Tk()
b1=Button(root,text="add", command=abc(a,b))
b1.pack()
root.mainloop()
this is my code for a machine which can add two numbers when input from the user is taken and the button is pressed. but in this code the fucntion gets called and the output is printed i the terminal even when the button is not pressed. pls suggest the reason and the correction in the code. thanks