Raven makes a list of her day. Wake up, eat breakfast, walk the dog. "Each one has lots of small steps," she says.
Rocket grins. "Let's give each one a function name!" He joins the words with a little low line, like programmers do.
Nova adds a hint. "Some functions need an input. Brushing teeth needs a toothbrush." Let's help them name five things from today.
Pick FIVE things you do today. Give each one a function name.
Use lowercase_with_underscores(). Programmers love this.
Example: brush_teeth(toothbrush). The toothbrush is the input.
| Statement | True or false? |
|---|---|
| You call a function by writing its name with ( ). | ? |
| A function can call another function. | ? |
| Function names should tell what the steps do. | ? |
| A function must be rewritten each time you use it. | ? |
Week 6: DEBUGGING. Finding the broken step.