title: How to concatenate two variable of which one is string and other is not
body: <p>I want my function to search for two indexes say "name" and "state". This is done and assigned to two separate variables. name is already a string and we want to convert the state to a string. I want to concatenate this two varibales. nearcity is a string and state is not. I want the state to be converted to string and concatenate both. How can it be done. Its simple i think but i am new to python</p>
  
  <pre><code>if valTest:
              idx = layer.fieldNameIndex('name')  #name of the attribute column with the cities in it
              idx1 = layer.fieldNameIndex('state')
              nearCity = f.attributes()[idx]
              state = f.attributes()[idx1]
  </code></pre>