Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Swift Basics (retired) Types Strings

Daichi Kuriki
Daichi Kuriki
14,925 Points

about this challenge http://teamtreehouse.com/library/swift-basics/types/strings-2

This challenge is confusing. Do I need to create array list first or just simply write println("item1 \n item2 \n item3") although it doesn't work.

3 Answers

Stone Preston
Stone Preston
42,016 Points

I had trouble with this as well. its very picky. dont put spaces between the items

println("Bread\nMilk\nHoney")
Daichi Kuriki
Daichi Kuriki
14,925 Points

Thank you Stone!! This challenge was very frustrating...

Stone Preston
Stone Preston
42,016 Points

yeah I was stuck for a while too.

Daichi Kuriki
Daichi Kuriki
14,925 Points

Ha ha. I feel your pain.

Yes I was stuck also, I was like I KNOW i got the syntax right, it just don't want spaces lol.

Daichi Kuriki
Daichi Kuriki
14,925 Points

Yeah, it made me crazy as hell too.

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

I've updated the challenge to make it more lenient. Sorry about that

Daichi Kuriki
Daichi Kuriki
14,925 Points

No worries. Treehouse community is great. And thanks for providing excellent (as always) courses Amit!