title: TypeError: Can't convert 'int' object to str implicitly *Python*
body: <p>For an assignment i am trying to get the results of a form "age" and to add one to that number using python. The form will have users enter their age and result should be their age next year.</p>
  
  <p>Here is what i have thus far:</p>
  
  <pre><code>import cgi
  form = cgi.FieldStorage()
  
  name = str(form.getvalue("name"))
  age = int(form.getvalue("age"))
  
  print ("""Content-type: text/html
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;Lab 9&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  """)
  
  print ("&lt;p&gt;Hello," +name+ ".&lt;/p&gt;")
  print ("Next year you will be" + str(age+1) + "years old")
  print ("&lt;/body&gt;&lt;/html&gt;") 
  </code></pre>
  
  <p>The error i get is </p>
  
  <pre><code>Traceback (most recent call last):
      File "/Users/JLau/Documents/CMPT 165/Lab 9/result.py", line 19, in &lt;module&gt;
          print ("Next year you will be" + str(age + 1) + "years old")
      TypeError: Can't convert 'int' object to str implicitly"
  </code></pre>
  
  <p>I somehow need to convert the value of age to and "int" to which a number can be added, not sure how to do this.</p>