Your odds of getting questions answered improve when you ask a clear, concise question that provides all the information that is needed but not a bunch of extra information, provide code and tell people what line to focus on, and give exact error messages.
Sometimes, though, even if you do everything right, no one answers because everyone who knows the answer isn't online or some other reason. But if you provide all of the relevant information, and ONLY the relevant information and code, and make it easy to run the program, chances are that someone will know the answer and help you.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: