Swift String Interpolation Example
String interpolation is a way to construct new strings that contain constants, variables, literals, and expressions. Each entry of the string literal you inserted is wrapped in parentheses prefixed by a backslash: let x = 3 let str = “\(x) * 5 = \(Double(x) * 5)” print(str) Below is above code execution result. 3 * …