title: Getting a string from JSON response and adding 1 to it
body: <p>I have a RESTful GET request from a ticketing system. It gets the most recent ticket number entered in the system, and prints it for the user. What I need to do is then take the number it gives, and add one to it for a POST request. For example, here's my code:</p>
  <pre><code>response = requests.get(url=url, headers=headers)
      data2 = response.json()
      ntickId = data2[0]['id']
      if tickId &lt; ntickId:
          pprint(f&quot;The most recent ticket is: {ntickId}. Press any key to continue.&quot;)
          input(&quot; &quot;)
          pprint(f&quot;Your new ticket number will be: &quot; + int({ntickId})+1)
  </code></pre>
  <p>Earlier, I entered the number 468516. Here's my output:</p>
  <pre><code>Please Enter Event Ticket ID: 468516
  'The most recent ticket is: 468999. Press any key to continue.
  </code></pre>
  <p>So far so good. So, <em>ideally</em> I'd expect 469000 to be the new ticket number. Here's what I got instead:</p>
  <pre><code>pprint(f&quot;Your new ticket number will be: &quot; + int({ntickId})+1)
  TypeError: int() argument must be a string, a bytes-like object or a number, not 'set'
  </code></pre>
  <p>I'm not sure how to go about this.</p>