Any once you have actual code issues, like syntax errors, or structural errors, or you need to do something specific and you just can't figure it out, try googling then post your code here and we'd love to help you out!
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: