Please enable JavaScript to use CodeHS

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #}

Chapter 4

Functions and Exceptions

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 4.1 Functions Functions Define and Call a Function Functions and Variables Two Different X's Extended Greeting Check Your Understanding Exercise: Weather
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 4.2 Functions and Parameters Functions and Parameters Print a Number Multiple Parameters Default Values Name and Age Check Your Understanding Exercise: Print Message
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 4.3 Namespaces in Functions Namespaces in Functions Two Different Y's Functions and Variables Check Your Understanding Exercise: Add, Subtract, or Multiply
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 4.4 Functions and Return Values Functions and Return Values Step Through Functions Calling Functions Check Your Understanding Exercise: Distance Converter
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 4.5 Exceptions Exceptions Try and Except Enter a Number Check Your Understanding Exercise: Enter a Negative Number