In this lesson, students learn about functions and parameters in the context of Python which builds on their prior knowledge of working with functions in Karel. This lesson focuses specifically on defining and calling functions, and passing simple, single parameters to functions.
Students will be able to:
In this lesson, students will work with and will define and call their own functions that take in multiple parameters as input and print out output.
Students will be able to:
In this lesson, students continue working with multiple parameters that create graphics as output which is very useful, since creating several different graphical objects involves writing the same code over and over again (set the size, set the color, set the location, etc).
Students will be able to:
In this lesson, students learn about return values so they can write functions that do some work and send the result back or use later in the program.
Students will be able to:
In this lesson, students work with and define functions with return values and more than one parameter.
Students will be able to…
In this lesson we explore the scoping of a variable, which is where the variable is “defined” or where it exists.
Students will be able to:
In this lesson, students explore Python’s way of handling errors with exceptions.
Students will be able to:
In this lesson, students will take a look behind the scenes of Karel. While they are familiar with the basic commands, this lesson explores details about how Karel’s API is created. Students will gain a better understanding of APIs while at the same time, applying graphics and function concepts.
Students will be able to:
Use your knowledge of basic Python to create some fun programs! Students will create their own Ghost drawings from Pac-Man, a Guessing Game, and a drawing of their own choosing. This will allow students to get creative with their code to show what they have learned.
Students will be able to…
This lesson is a summative assessment of the unit’s learning objectives.
Assess student achievement of the learning goals of the unit