Check out example codes for "swift print". It will help you in understanding the concepts better.

Code Example 1

print("Hello World")
//printing a value
let num = 5
print(num)
print("a num: " + num) //concatenation
print("a num: \(num)") //interpolation

Learn ReactJs, React Native from akashmittal.com