Free Python Code for Output Buttons!

This is free Python 3x code that shows how to create a simple button that produces output. Just copy and paste the following code into Python and run it:

from tkinter import *

def Pressed(): #function
      print ('buttons with output')

root = Tk() #main window
button = Button(root, text = 'Press', command = Pressed)
button.pack(pady=20, padx = 20)
Pressed()
root.mainloop()