Session 4: Objects and Functions

1. Concepts

Students will learn

What objects and functions are and how to use them
Why objects and functions are important

2. Background/Overview

Students will have completed the introduction to Python.
They should know programming basics including conditions and loops.

3. Lesson Plan

Introduction to functions
Object-oriented programming: What is an object & how to use them.


4. Reinforcement Activities

Students will complete the functions programming exercises in the slides
Objects worksheet

Objects Worksheet

5. Solutions

Solutions to each exercise will be shown after the allotted amount of time given to solve it.





© The SWiFT Program
Department of Computer Science
Colorado State University

Educational activity supported by a CAREER grant from the US National Science Foundation Advanced Cyberinfrastructure (ACI-1553685).