Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Unpacking with Dictionaries

Unpacking dictionaries is the opposite of packing them. It can be used if you have an existing dictionary that you would like to send to a function.

Consider this code:

teacher = {
  'name':'Ashley',
  'job':'Instructor',
  'topic':'Python'
}

def print_teacher(name, job, topic):
    print(name)
    print(job)
    print(topic)

First, we have a dictionary called...