Hey Mahesh,
Piyush Ramavat

You do pay gas for any transactions which change the state. In this tutorial, you are only interacting with testrpc and it has default gas price and limit already set. You are just not explicitly specifying the gas price. Check your account balance, execute a transaction and check again, you will notice the balance would have gone down.