Functions can be used to create code that can then be reused in your program. A function is a program within a program. They can be used to organize larger programs to make them easier to understand.
We are going to write a simple program that uses a functions. Sphero has been invited to try out for Dancing with the Stars. He needs our help to choreograph his routine. He wants to perform his two "signature" moves over and over.