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

Geez, looks like I'll need to ask a question after every challenge as I just can't get the green light. Thanks

I tried several times. Thanks for help. I must say again it's getting to me that you don't have solutions.

strings.swift
println("n\Bread,n\Milk,n\Honey,")

3 Answers

Hi Peter,

Take your time and try to make sure you understand everything in the question. Especially the last part:

Separate each item in the list with the special newline character (\n).

Newline characters are represented by \n, not n\.

Also, we don't need commas in the string to separate each item, just newline characters.

Hope this helps,

Cheers

Hi Robert Thanks very much! That did the job but just goes to show that we have to rely on our memory so perhaps a reference sheet would be useful instead of having to keep re watching the videos and again having to rely on or memory and clearly mine is not so good, lol. This is the easy stuff, when it gets more complicated I'll have no chance.

I think it's important to be patient with yourself. Making mistakes and troubleshooting errors are the way of life for us. If ever you stop making mistakes, then I'll argue that you've stopped trying to learn.

Thanks Robert, great advice I'm sure!