Please enable JavaScript to use CodeHS

Intro to Programming with Karel and micro:bit

If Statements

Students learn how to use if statements when solving problems. By having Karel check for specific conditions, students can write programs that can be executed successfully in multiple scenarios.

Lessons

5.1 If Statements

  • If Statements
  • If Statements Quiz
  • If Statements
  • Safe Take Ball
  • Is There a Ball?

5.2 If/Else Statements

  • If/Else Statements
  • If/Else Statements Quiz
  • If/Else Statements
  • One Ball in Each Spot
  • Right Side Up

5.3 More Practice

  • Face the Right Direction
  • Fetch Puzzle
  • Reflection: If/Else Statements

Courses that include this module