Functions · exercise 1 of 1 · free preview
The game so far · chapter 9
Right now: Pip cannot repair the broken machines (the scrap piles).
This chapter's mission: Teaches Pip to repair machines. Work through the exercises, then your own code brings it to life.
A function is a named block of code. def beep(): defines it, and beep() runs it. Lines inside are indented.
Define a function beep() that prints Beep, then call it twice.