With all due respect, I'm rather confused by the previous reply (and its up-voting), as it is flat out incorrect. Compiler? PHP is originally an interpreted language. Yes there are compilers, but they are not required for running PHP scripts. Further, the code the OP posted is most likely not required to run a script.
Usually the purpose of the code you posted, andyy121, is to provide short-named variables for the values stored in $_POST['___']. So instead of having to always type $_POST['contact_name'] every time you want to refer to this value, you can refer to $contact_name. Further, now if you have to modify this value you can do so without changing the values stored in the $_POST superglobal variable.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: