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

This is ridiculous. It works on my Playground just fine yet it's saying I'm wrong? Time to FIX your site!

let language = "Swift"

println("Learning " + language)

// this is wrong? Nope. Show's up on my console as "Learning Swift".

println.swift
let language = "Swift"

println("Learning " + language)

1 Answer

Colin Bell
Colin Bell
29,679 Points

The second part of the challenge says: Remember to use the language constant within the string you pass to your println statement. It also tells you in the error that it's looking for interpolation of the variable.

So while what you have might work, it is not what the challenge is looking for.

let language = "Swift"

println("Learning \(language)")