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 2.0 Basics Swift Types String Manipulation

Can't understand

I fix the before problem...but now i really can't understand what's the problem.

// Enter your code below
let name = "Marina"
let greeting = "Hi there, \(name)"
let finalGreeting = "\(greeting). How are you?"

2 Answers

Tobias Helmrich
Tobias Helmrich
31,602 Points

Hey Marina,

Oops, I accidentally deleted my answer instead of the comment, sorry.

Once again: You almost got it right, you just have to use string concatenation instead of interpolation in the second task.

// Enter your code below
let name = "Marina"
let greeting = "Hi there, \(name)."
let finalGreeting = greeting + " How are you?"

What I actually wanted to add: Don't think you're stupid because of that, your code was actually perfectly fine, the challenge just wanted you to solve it in a different way! :)

oh god! i'm so stupid! thank u very much!