Please enable JavaScript to use CodeHS

Utah Introduction to Python 1

Description

In this lesson, students learn how to use comments to describe their programs. Comments are helpful because they allow programmers to leave notes about the programs they are writing. Students will also learn about the different types of comments that can be used and the benefits of using them.

Objective

Students will be able to:

  • Use comments throughout their program
  • Describe why comments are helpful for both themselves and anyone else looking at their code
Description

In this short lesson, students will be introduced to the rules for naming elements in their code. Variables and functions that are used inside their programs will be named by students, so the following guidelines should be obeyed to be sure that the programs written are readable and successful.

Objective

Students will be able to:

  • Name elements of their code by following specific guidelines and rules in order to create readable and working programs
Description

In this lesson, students are introduced to functions. They start with the basics of defining a function and why we need them and will revisit a program they coded earlier in the unit to rewrite it using functions.

Objective

Students will be able to:

  • Define a function
  • Call a function
  • Explain why functions are used
Description

In this lesson, students are able to add some flair to their turtle graphics programs by controlling color, pensize, and fill. These new commands are added to the list of commands that have been already practiced in order to allow for more creativity in student programs.

Objective

Students will be able to:

  • Use the extended circle() command to draw different shapes
  • Use the color(), pensize(), begin_fill(), and end_fill() commands to add more creativity to their programs
Description

In this lesson, students will learn how to use the write function to add text labels to their programs.

Objective

Students will be able to:

  • Use the write command to add text to the canvas
  • Use additional attributes with the write command to change the font style and location of the text label created
Description

In this lesson, students are introduced to the concept of Top Down Design. Top Down Design is the process of breaking down a program into functions or smaller parts to avoid repeated code and to make our programs more readable.

Objective

Students will be able to:

  • Break a large problem down into smaller pieces
  • Write functions to solve each smaller problem
  • Solve a complicated problem using Top Down Design
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:
    • single and multi-line commenting
    • naming rules
    • defining and calling functions
    • top down design
    • color
    • pensize
    • begin_fill / end_fill
    • circle with extended parameters
    • write