iOS Swift Basics Swift Types Recap: Swift Types

I would like some help with my string interpolation.

I have forgotten the proper syntax in this challege.

types.swift
let firstValue = 7
let secondValue = 8
let product = firstValue * secondValue
let ouput = ("The product of"), \(firstValue), ("times"), \(secondValue), ("is"), \(product)

2 Answers

Brandon Mahoney
Brandon Mahoney
iOS Development with Swift Techdegree Graduate 30,144 Points

When interpolating it should all be inside one string. I would review the difference between interpolation and concatenation.

// Enter your code below
let firstValue = 5
let secondValue = 10

let product = firstValue * secondValue
let output = "The product of \(firstValue) times \(secondValue) is \(product)"

This helps. Thanks!