Dictionary Unpacking with *args

Below is an example of unpacking a dictionary using the *args syntax

#creating a sample dictionary
sample_dict = {'name': 'John', 'age': 18, 'city': 'Austin', 'Country': 'Peru'}

first, *middle, last = sample_dict.items()
first, middle, last
(('name', 'John'), [('age', 18), ('city', 'Austin')], ('Country', 'Peru'))