title: Need to pass object in a python array in bash
body: <p>I am trying to get the response code for three sites using the below python code snippet. But wondering how I can parse each object in the array to pass through the for loop within the <code>curl</code> call.</p>
  
  <pre><code>import os
  
  servers = ["google", "yahoo", "nonexistingsite"]
  for i in range(len(servers)):
      print(os.system('curl --write-out "%{http_code}\n" --silent --output'
                      ' /dev/null "https://servers[i].com"'))
  </code></pre>
  
  <p>With the above code, it's not getting passed through <code>servers[i]</code>.</p>