Title:
URL:
Content Source:
Overview:
One of the most magnificent structures in the computer science world is the function. Functions (sometimes called procedures) are mini-programs that you can use over and over inside of your bigger program. This lesson will help students intuitively understand why combining chunks of code into functions can be such a helpful practice.
The use of functions helps simplify code and develop the students' ability to organize their program. Students will quickly recognize that writing functions can make their long programs easier to read and easier to debug if something goes wrong.
Students will be able to:- locate repeating phrases inside song lyrics.- identify sections of a song to pull into a function.- describe how functions can make programs easier to write.
Note: You will need to create a free account on code.org before you can view this resource.