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

Ian Callahan
PLUS
Ian Callahan
Courses Plus Student 228 Points

println challenge errr???

Its telling me to use interpolation in the challenge and I have looked at the video a ton but can't see what I am missing in this

println.swift
let language = "Swift"
println ("learning \("language)")

4 Answers

HI there:

Your code:

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

Right code:

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

You have a double quote in your interpolation. And I think the l in learning should be uppercase :) The extra quote breaks the string in the middle therefore the interpolation could not be parsed.

Ian Callahan
PLUS
Ian Callahan
Courses Plus Student 228 Points

Well thanks again haha. If I may ask why does the capitalization matter so much??

Well the CAPS matter just that the challenges are checked behind the scenes by scripts and you have to put it that way or it gives you an error -> which is good 'cos this way you learn to keep your code nice and tidy in the future, it's easier to read clean code then code all over the place with no head or tail :)

I real life situation it doesn't matter.

Ian Callahan
PLUS
Ian Callahan
Courses Plus Student 228 Points

Got it, thanks!! As you can tell I am quite new to this.

Great that you are new. Means you are willing to learn. I personally like to hear that.

It's a bit harder to get it right when you have no experience with coding.

But you chose the best place to get your Foundations: teamtreehouse.com :)

Ian Callahan
PLUS
Ian Callahan
Courses Plus Student 228 Points

I am willing to learn. Your definitely right about that it being hard with no experience. I've always been good with computers in the sense of using programs and getting things done. Just trying to shift my point of view now