Answer key to the exercises in Chris Pine's Learn to Program book.
def say_moo number_of_moos puts 'mooooooo....'*number_of_moosendputs say_moo(3)