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

iOS

Parameters and Tuples - Extra Credit

At the end of this course there is a extra credit task. Although it is not required for it to be completed, I would still like to complete it. (a chance to practice what I've learnt) the given task is as follows: Write a function that accepts a Dictionary as parameter and returns a named tuple. The dictionary should contain the following keys: title, artist and album.

Now, I feel comfortable to create a function and return a named tuple but I'm struggling to work a dictionary into this. Also i don't understand how I would print out a string such as "Currently playing is (Title) Dream by (Artist) Imagine Dragons" without Title and Artist showing in the string.

Does anyone else feel a bit overwhelmed by this 'Extra credit' challenge or is it just me?

agreed, I also find this overwhelming

Agreed. And what is the function of this function supposed to be? This is a poorly conceived exercise.