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

Interpolation Challenge: Wrong here, correct in real world

Why was my answer to the Interpolation Challenge marked incorrect here, but works fine in Xcode?

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

3 Answers

I just successfully completed the challenge myself again using the below code:

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

Not sure what is going on because you have the correct answer.

J.D. Sandifer
J.D. Sandifer
18,813 Points

I recommend looking closely at the error message when your code is marked wrong on here. They're usually pretty helpful.

Also, try typing out the code rather than copying it from another program - like from an Xcode playground - if that's what you're doing.

Thanks for your help guys!