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 Printing Results

Nkosi Ndlovu
Nkosi Ndlovu
9,652 Points

Swift Basics( Println )

I am stuck on this question, not sure what I am doing wrong.

let language = "Swift"
println("Learning "+language)

or

let language = "Swift"
println("Learning "/(language))

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Nkosi,

I recommend you watch the previous video again as Amit shows 2 examples of string interpolation as it's known, in saying that the answer it's looking for is the following.

println("Learning \(language)")
Nkosi Ndlovu
Nkosi Ndlovu
9,652 Points

my bad, was still thinking of jscript. also, how do I make my code come up yours? I have tried to edit following this guide but with no luck. thanks again

Chris Shaw
Chris Shaw
26,676 Points

No problem, have a read of the below link, Dave McFarland goes into a bit of detail of using the backtick as it's known for markdown code formatting.

https://teamtreehouse.com/forum/posting-code-to-the-forum