Students in my Intro to App Development class are learning about functions in Swift, how to declare a function, how to call a function, how functions can make program code more modular, and help programmers to reuse code for repetitive tasks.
What better way to practice functions than to look at song lyrics and think about how the chorus of a song repeats and can be put into code.
Check out the video below if you are unfamiliar with this popular song.
Coding "Happy" by Pharrell Williams