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

Need some help in completing the extra credit at the end of Swift Basic's "Collection" steps?

I am struggling to "create an array of 10 songs where each song is a dictionary. The dictionary contains the following keys: title, artist and album." - when I have attempted to complete this task I receive the following error message "Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)" - not sure how to overcome this issue but am determined to, so would welcome any help in uncovering what mistake(s) I am making! Thanks!

Jamal, and your code?

Hey William

Apologies! : )

var playlist = [ "Title": "Save Me", "Artist": "Michael Jackson", "Album": "Invincible", "Title": "For The Rest Of My Life", "Artist": "Boyz II Men", "Album": "Twenty", ]

Hey I have attempted to rectify my code, please let me know if I am on the right track when you get the chance, thanks! let playlist = ["songOne", "songTwo", "songThree", "songFour", "songFive"] let songOne = ["title": "Harm in Change", "artist": "Toro Y Moi", "album": "Anything In Return"] let songTwo = ["title": "Say That", "artist": "Toro Y Moi", "album": "Anything In Return"] let songThree = ["title": "So Many Details", "artist": "Toro Y Moi", "album": "Anything In Return"] let songFour = ["title": "Rose Quartz", "artist": "Toro Y Moi", "album": "Anything In Return"] let songFive = ["title": "Touch", "artist": "Toro Y Moi", "album": "Anything In Return"]

1 Answer

Did u find the answer for this. ?