Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Collections (2016, retired 2019) Dictionaries Packing and Unpacking Dictionaries

Patrick Borosky
PLUS
Patrick Borosky
Courses Plus Student 10,615 Points

Packing/Unpacking syntax error?

So, I tried to follow the code from the video and couldn't get the code to work in the workspace at all. I end up getting a syntax error. I even downloaded and directly uploaded the code then got the same error. Is anyone else having the same issue?

Haitao Huang
Haitao Huang
2,834 Points

I've encountered the same issue several times!

Ryan S
Ryan S
27,276 Points

Hi Patrick,

It would be helpful if you provided the details of your syntax error.

1 Answer

If its the same syntax error that i was facing. on your unpacker line you should add curly braces to it. Example: unpacker(**({"last_name": "Castillo", "first_name": "Bryan"}))