Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introducing Dictionaries!
You have completed Introducing Dictionaries!
Preview
Learn how to pack dictionaries.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
each variable reference becomes
the corresponding value.
0:00
It's a lot like packing
with Python sequences.
0:02
But instead of passing multiple positional
arguments and capturing them into a tuple
0:04
you're passing multiple variable arguments
and capturing them into a dictionary.
0:09
So that's a lot of words.
0:14
Let's back up.
0:15
What's a variable argument?
0:16
Well, oftentimes when we call functions
we pass positional arguments.
0:18
These are just comma separated values
that are received by the function
0:22
in the order in which they're sent.
0:25
That's why they're called positional.
0:27
The key difference between variable
arguments and positional arguments
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up