Please enable JavaScript to use CodeHS

Intro to Computer Science in Python 2 (Rainforest)

Functions and Exceptions

Students learn how their programs can be decomposed into smaller pieces that work together to solve a problem.

Lessons

6.1 Functions

  • Functions
  • Functions
  • Greeting
  • Extended Greeting
  • Weather

6.2 Namespaces in Functions

  • Namespaces in Functions
  • Namespaces in Functions
  • Functions and Variables
  • Functions and Variables, Part 2
  • Fix This Program!
  • +2 more

6.3 Functions and Parameters

  • Functions and Parameters
  • Functions and Parameters
  • Print a Number
  • Name and Age
  • Print Product
  • +3 more

6.4 Functions and Return Values

  • Functions and Return Values
  • Functions and Return Values
  • Return 10
  • Add One
  • Negate
  • +5 more

6.5 Exceptions

  • Exceptions
  • Exceptions
  • Enter a Number
  • Enter Name and Age
  • Divisibility, Part 2
  • +2 more

6.6 Functions and Exceptions Quiz

  • Functions and Exceptions Quiz
  • Control Flow Badge

Courses that include this module