This example is to show you how to write the “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 the following output
I am learing swift code: Hello World