What does this print?
let x = 7
let y = 3
let msg = "\(x) + \(y) = \(x + y)"
print(msg)
Try it in the online Swift Playground →
[spoiler title="Solution"]
Answer:
7 + 3 = 10
Explanation:
String interpolation with `\()` evaluates expressions and inserts them into strings.
[/spoiler]