Before you jump into server side scripting, you definately should spend as much time as you can with the basics.
When I decided to learn web development, I picked up asp.net first and used visual studio to develop. The IDE makes it easy to drop controls on the page but I found myself struggling when I wanted to introduce anything into my design that was not readily available in the tool. Once I stopped and started from the very beginning, it made a world of difference.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: