Please enable JavaScript to use CodeHS

Washington Foundations of Computer Science

Lesson 2.3 Karel Can't Turn Right

Description

In this lesson, students will learn how they can create their own commands for Karel by calling and defining functions. Functions allow programmers to create and reuse new commands that make code more readable and scalable.


Objective

Students will be able to:

  • Define a function, and successfully implement functions in their code.
  • Teach Karel a new command by creating a turnRight() function