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

Philipp Hahn
Philipp Hahn
1,366 Points

String manupulation task 1 - make sure the value you are assigning to greeting is an interpolated string

Hello I am trying to solve the tasks, but I only get the Bummer notice ^^ I have no idea how to "make sure the value you are assigning to greeting is an interpolated string" I understand how to make a a constant with name and the greeting, but I do I call the interpolation string, I try to type it like in the video but I am stuck with the "bummer" notice.

strings.swift
// Enter your code below
let name = "Ana"
let greeting = "hola que tal"

2 Answers

David Papandrew
David Papandrew
8,386 Points
let name = "Ana"
let greeting = "Hi there, \(name)"
Philipp Hahn
Philipp Hahn
1,366 Points

Well done! You're doing great! woohoo now I understood, thank you so much best regards from Berlin