Do you know what object oriented programming is? If so then c++ is c with object oriented capability. There are some other differences but that is the main one. If you don't know what object oriented programming is then look it up or ask
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: