Please enable JavaScript to use CodeHS

Utah Introduction to Python 1 and 2

Description

In this short lesson, students will be introduced to the idea of checking their own programs. They will gain insight on how autograders should be used and what other ways they can be sure they have successfully completed a program before moving on.

Objective

Students will be able to:

  • utilize different methods of checking their programs
  • understand the limitations of autograders
Description

In this lesson, students will learn how to use the left, right, and setheading/seth commands in order to move Tracy to more locations on the canvas. They will now have many commands that can be used to have Tracy create more complex graphics.

Objective

Students will be able to:

  • Use the left and right commands in order to turn Tracy from her current direction
  • Use the setheading/seth commands to turn Tracy to face a specific direction
Description

In this lesson, students are introduced to for loops. They learn how for loops simplify the process of making small changes to a program and help avoid repeating code. For loops are written like this:

for i in range (4):
    // Code to be repeated 4 times
Objective

Students will be able to:

  • Create for loops to repeat code a fixed number of times
  • Explain when a for loop would be a useful tool
  • Utilize for loops to write programs that would be difficult/impossible without loops
  • Use the bgcolor command to change the color of Tracy’s canvas
Description

In this lesson, students are introduced to the ability to turn Tracy at any angle. With this feature, Tracy can now draw diagonal lines which opens up the possibility to draw multiple shapes that weren’t previously available.

Objective

Students will be able to:

  • Use angles inside turning commands
  • Turn Tracy at angles in conjunction with for loops
Description

In this lesson, students review content with a 10 question End-of-Unit Quiz.

Objective

Students will be able to:

  • Prove their knowledge of the following commands and concepts through a multiple choice quiz:
    • for loops
    • left / right
    • setheading / seth
    • speed
    • bgcolor