I have no idea on AJAX, Can anyone please advise on any reference material as am a beginner?
First, I'd recommend you do some background reading on what Ajax is. Read this. Second, there are a couple of frameworks which make the development of dynamic pages easier. I'd recommend you decide which framework (set of libraries) to use for your Ajax development. It's probably a choice between Mootools and JQuery. Here is a discussion on Mootools versus JQuery. David Walsh says "MooTools has made Ajax so simple that a rookie developer can get their dynamic pages working in no time". Mootools can be found here. Or if you want to go down the JQuery route, then the JQuery documentation is here. I have personally done some JQuery programming and it does enable you to have some neat features on your page, running efficiently without the page having to re-load e.g. you can have a bit of the page open up to allow the user to enter more data. Mootools has also been recommended to me as making it easier to write ajax-type web applications. Hope this helps.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: