Understanding functions within the context of python and building a program that resembles a shopping cart list.