Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Functions, Packing, and Unpacking Course (How To)

via Treehouse

Overview

Learn the ins and outs of Python functions, how to send and receive values to functions, and all about Python packing and unpacking.

What you'll learn

  • Function definition
  • Arguments and parameters
  • Packing
  • Unpacking

Syllabus

Introduction to Functions

Discover the basics of Python functions.

Chevron 6 steps
  • Recap of Functions

    1:37

  • Defining a Function

    2:44

  • Calling a Function

    2:04

  • Let's Talk About Scope

    3:26

  • Create and Call a Function

    1 objective

  • Recap of Introduction to Functions

    4 questions

Getting Info In and Out of Functions

Learn how to pass arguments to functions and receive values out from them via returns.

Chevron 8 steps
  • Moving Forward

    0:28

  • instruction

    Functions Recap and Cheat Sheet

  • All About Returns

    5:03

  • Arguments and Parameters

    4:31

  • instruction

    Function Gotcha's

  • Multiple Arguments and Parameters

    3:45

  • Functions with Arguments and Returns

    2 objectives

  • Recap of Getting Info In and Out of Functions

    4 questions

Packing and Unpacking

Learn all about packing and unpacking!

Chevron 7 steps
  • Packing

    4:15

  • Packing, a Practical Example

    3:38

  • Packing Challenge

    1 objective

  • Unpacking

    3:04

  • Unpacking, a Practical Example

    3:16

  • Unpacking Challenge

    1 objective

  • Recap of Packing and Unpacking

    4 questions

Reviews

Start your review of Functions, Packing, and Unpacking Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.