In this example I am going to write “Hello World” code in Swift 3. To write the code you can use the Swift Playground
So you can run the following code in your Playground
var str="Hello World"
print ("I am learing swift code: \(str)")
So you will get following output
I am learing swift code: Hello World