Please enable JavaScript to use CodeHS

South Carolina Introduction to Computer Programming

Functions and Exceptions

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

Lessons

8.1 Functions

  • Functions
  • Functions
  • Greeting
  • Extended Greeting
  • Weather

8.2 Functions and Parameters

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

8.3 Namespaces in Functions

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

8.4 Functions and Return Values

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

8.5 Exceptions

  • Exceptions
  • Exceptions
  • Enter a Number
  • Enter Name and Age
  • Temperature Converter, Part 2
  • +1 more

8.6 Testing Your Programs

  • Test Cases
  • Test Case Practice: Enter a Positive Number
  • Test Case Practice: Documentation
  • Test Scripts
  • Test Scripts Practice
  • +1 more

8.7 Functions Quiz

  • Functions and Exceptions Quiz
  • Control Flow Badge