Welcome to the Treehouse Community
Looking to learn something new?
Daulet Bakhbergenov306 Points
What I am doing wrong?
Here is asking to combine. I don't understand please could anyone help
let name = "Daulet" let greeting = "Hi there, " let combination = greeting + name let entropolatedCombination = "\(greeting) \(name)"
Alex KoumparosPython Development Techdegree Student 36,862 Points
The challenge is telling you to set the constant
greeting to the value of "Hi there, " followed by (using interpolation) the value in
You've demonstrated in your last line that you know how to use string interpolation, you just need to make sure that the result ends up in the right constant.
You should end up with just two lines:
- one declaring the constant
nameand assigning the value of your name to it (you already have this exactly right);
- one declaring the constant greeting and combining (using interpolation) the string literal "Hi there, " and the contents of
Hope that helps
harshil bhattCourses Plus Student 2,722 Points
let name = "Daulet" let greeting = "Hi there, " let combination = "(greeting) +( name)"
let entropolatedCombination = combination
// This one is right