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 Swift Basics (retired) Types Strings

Using println to output three items from a grocery list.

It was not clearly defined that the terms "grocery" and "list" needed to be added to answer.

I was told to create a list of three items, which I did and failed. After including Grocery List in the println I passed.

5 Answers

Do you care to post the question and show your work? This way we can look it over together and see what was wrong and why it did not work. In my own experience I have missed the simple things until it was pointed out to me.

Sorry, I did not realize that the question was put into a general forum.

Call the println function one time to print these items from a grocery list: "Bread", "Milk", "Honey". Separate each item in the list with the special newline character (\n).

obey me
obey me
1,135 Points

\n means new line and this is the answer

                        println(" List:\nBread,\nMilk,\nHoney")

I understood the syntax part correctly. It was not made clear to me that "List" had to be included.

obey me
obey me
1,135 Points

yes you had to ,did it work