title: If, else statement output
body: <pre><code>for i in range(len(npa)):
      filename = '/lca_rcdist.php?npa1=503&amp;nxx1=745&amp;npa2=503&amp;nxx2=' + npa[i]
      reply = urllib.request.urlopen(servername + filename)
  
      if reply.status != 200:
          print('Error sending request', reply.status, reply.reason)
      else:
          data = reply.readlines()
          reply.close()
          for line in data[:showlines]:
              cLine = line.decode('utf-8')
              if '"ofrom"&gt;N&lt;' in cLine:
                  print('NXX ,' + npa[i]) 
  </code></pre>
  
  <p>The following output is <code>NXX,269NXX,298NXX,300NXX</code> and so on, is there a way to add if and else statement so that the output does not contain a comma and NXX in front of the first entry? example: <code>269NXX, 298NXX</code>? I'm new to this and still strugling with if and else statements on scripts like these. Any ifo on how to change the output using if, else statemnet will be appriciated.</p>