Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Swift Basics (retired) Types Printing Results

Could you provide an example of how this task would look complete.

i have the constant named language and create a variable called greeting (var edu = "learning") than try to write the println by interpolating println(language) \ (edu) and get errors every time i feel as though im missing something but not sure what

println.swift
let language = "Swift"

3 Answers

David Fry
David Fry
13,267 Points

Brad, I think you are trying to do is this(see code below). What I see right off the bat is you are missing the quote marks (") on either side.

  let language = "swift"
  let edu = "learning"
  println("\(language) \(edu)")

Thank you if had the quotations earlier when trying to complete the task it keeps saying to make sure I interpolate the constant which as you showed I believe is done

let language = "Swift" let str = "learning " println ("(str) (language) ")