DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments" http://www.daniweb.com/community/rules
Post what you have got so far and someone will help you with any detailed questions you may have.
PLEASE tell if someone has some idea as overridding is basically a concept of inheritance which basically refers to different implementations of the same method in the hierarchy.so what could be the demerits??
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: