Give the playground a name and choose the platform from the pop-up menu in the dialog that appears. In our case we gonna select ‘ IOS ` and hit create.
We will see playground open with code below.
//: Playground – noun: a place where people can play
var str = "Hello, playground"
We gonna see the above code there as soon we call ‘print’ method we will see the output.
now save the playground.
All set…. BTW playground also runs automatically each time when you finish you finish statement or take a pause from typing. so you can see the output