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

Brahim Farhani
Brahim Farhani
1,534 Points

Answer

Can you show us the answer as I do not understand what is wrong?

println.swift
let language = "Swift"
println((language) "Learning Swift")

4 Answers

Michael Hulet
Michael Hulet
47,842 Points

You didn't quite get your string interpolation syntax right. You need to add a backslash before the opening paren before language in the println call. Also, I don't think the string you're using is quite right for what the challenge is asking. This should work:

let language = "Swift"
println("Learning \(language)")
Brahim Farhani
Brahim Farhani
1,534 Points

Michael Hulet may I contact you for further questions ?

Michael Hulet
Michael Hulet
47,842 Points

Sure. I'm a little rusty on my Swift (I'm an Objective-C guy), but I'll try to help as best I can. It appears you've already found me on Facebook, so I guess no further contact info is necessary. I'll accept your friend request when I get home from school

Brahim Farhani
Brahim Farhani
1,534 Points

Sounds great thank you! Can you also give me the time when your available ?

Brahim Farhani
Brahim Farhani
1,534 Points

Sounds great thank you! Can you also give me the time when your available ?

Brahim Farhani
Brahim Farhani
1,534 Points

Sounds great thank you! Can you also give me the time when your available ?

Michael Hulet
Michael Hulet
47,842 Points

Generally, I'm free between about 2:30 PM EST and 11 PM EST on weekdays (I'm still a high schooler in the Philadelphia area), and pretty much all day on weekends, depending on whether or not I'm at a hackathon or a Robotics competition. Just message me whenever, and I'll answer as soon as I can