This video outlines how to setup and read an input from a button. Pull-up and pull-down resistors are discussed, and the relevant Python code is explained.
Learn more about programming, electronics, and the Raspberry Pi at:
http://cutequbit.zapto.org