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

Nick Mulvaine
Nick Mulvaine
748 Points

I entered the same code in Xcode without and issue. I am not sure what I did wrong.

I put the exact same lines into Xcode and had no issue printing language with the value of Learning Swift assigned to it

println.swift
let language = "Learning Swift"

println(language) 
Charles Zhang
Charles Zhang
2,032 Points

hmm, i dont see anything wrong with that

Charles Zhang
Charles Zhang
2,032 Points

hmm, i dont see anything wrong with that

Charles Zhang
Charles Zhang
2,032 Points

hmm, i dont see anything wrong with that

Charles Zhang
Charles Zhang
2,032 Points

hmm, i dont see anything wrong with that

2 Answers

The challenge's instructions are to use string interpolation using the given constant string "language" in order to print a new string.

let language = "Swift"
println("Learning \(language)")
Nick Mulvaine
Nick Mulvaine
748 Points

Duh!!! Thank you! Not my day it seems haha