Please enable JavaScript to use CodeHS

Utah Introduction to Python 1

Making Decisions

Students learn how to use if/else statements and while loops to instruct Tracy to make decisions based on conditions. They also learn how to return values from functions.

Lessons

7.1 If Statements

  • If Statements
  • If Statements
  • If Statements: Example Walkthrough
  • X and Y Axis with Bolded Marks
  • If Statements and Trace Tables
  • +5 more

7.2 If/Else Statements

  • If/Else Statements
  • If/Else Statements
  • If/Else Statements: Example Walkthrough
  • Positive, Negative, Zero
  • If/Else Statements and Trace Tables
  • +5 more

7.3 Returning Values from Functions

  • Returning Values from Functions
  • Returning Values from Functions
  • Returning Values from Functions: Example Walkthrough
  • Trivia
  • Returning Values and Trace Tables
  • +2 more

7.4 While Loops

  • While Loops
  • While Loops
  • While Loops: Example Walkthrough
  • Increasing Circles
  • While Loops and Trace Tables
  • +5 more

7.5 Making Decisions Quiz

  • Making Decisions Quiz