Week 6: Functions
Learning Objectives
By the end of this week, students will be able to:
- Define and call functions with parameters and return values
- Break a larger problem into smaller reusable pieces
- Choose meaningful function names and parameter names
- Test functions independently from the rest of a program
Perspectival Reading
Reading: TBD
Reflection Questions
- Why does breaking code into functions make programs easier to test and debug?
- What is the difference between printing a value and returning a value?
- How can function design make a program easier for another person to read?
Slides
Lab Assignment
Week 6 Lab — GitHub Classroom (link TBD)