If you are complete beginner then forget about IDEs for now. You will learn more by working with an editor & compiler. IDEs will generate code and fix problems for you, but if you don't fully understand what they are doing and why, you will get into trouble. When, eventually, you are ready for an IDE there are only 2 that are widely used in commercial environments, NetBeans and Eclipse. They are both equally good, but the Java tutorials use NetBeans, and if you plan to work for IBM you will be using Eclipse.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: