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

Joe Blow
PLUS
Joe Blow
Courses Plus Student 229 Points

how to write a printing line statement giving a constant name

giving the constant name language , how to write println which will print the following string: "learning swift" ?

println.swift
let language = "Swift"
Steve Pham
Steve Pham
1,488 Points

println("Learning \ (language)")

Joe Blow
Joe Blow
Courses Plus Student 229 Points

thank you but it says ; you printed "learning swift " , but you were supposed to print learning swift ?? i dont understand , thank you .

Steve Pham
Steve Pham
1,488 Points

i'm a new Dev it very hard to explain for you understand but i will tried Because: let language = "Swift" that right so they want you write " Learning Swift" that mean Println("Learning \ (language)" You just copy language on the top and write again. Sorry men because my English not good sometime i write something you don't understand.But i was tried.

Joe Blow
Joe Blow
Courses Plus Student 229 Points

thank you , i finally seen the mistake .I was putting a unneeded space. my english its not so good either.

Steve Pham
Steve Pham
1,488 Points

Okey good luck men

1 Answer

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

Just adding Steve's response as an answer in addition to a comment. Here's the code solution he provided:

println("Learning \ (language)")