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!

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

iOS Development Swift

Given the constant named language, write a println statement which will print the following string: "Learning Swift". (Remember to use the language constant within the string you pass to your println statement).

let language = "Swift"

let language = "Swift"

2 Answers

println("Learning \(language)")

swift_lint.swift:8:21: error: invalid escape sequence in literal println ("Learning \ (language)" ^ swift_lint.swift:8:33: error: expected ',' separator println ("Learning \ (language)" ^ , swift_lint.swift:9:1: error: expected expression in list of expressions

^ swift_lint.swift:8:33: error: expected ',' separator println ("Learning \ (language)" ^ ,

This is the error i get with that answer

Nevermind their was a space between the backslash and (. thanks for your help