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 trialJoey C
1,837 PointsWhats string literal again? I need help on step 2
Whats string literal again? I need help on step 2 of task 2
// Enter your code below
let firstValue: Int = 212
let secondValue: Int = 322
let product = firstValue * secondValue
1 Answer
Steven Parker
231,269 PointsA string literal is simply anything that is enclosed in quotes.
It can be any combination of words, letters, spaces, and symbols. In this case, the challenge asks you to use string interpolation which means that your string literal will include special combinations of certain symbols and variable names which will then be substituted by values from your program.
You might want to re-watch the appropriate video if you're not sure how to indicate substituted values for interpolation.