title: Printing each item of array in JSON format
body: <p>I am very new to Python; I have taken a couple of beginner courses in the past and currently, I have thrown together a few scripts to help me with certain tasks at work (mostly related to gathering/parsing data). What I am trying to do now is take a list of user IDs (taken from a raw_input which has been put into an array) and then print a list of each of those numbers in JSON formatting. The result would have to look something like:</p>
  
  <pre><code>{
      "user_id": "12345",
      "name": "Bob",
      "comment": ""
  }
  </code></pre>
  
  <p>This is what I have so far:</p>
  
  <pre><code>script_users = map(int, raw_input("Please enter your user IDs, seperated by space with no comma:  ").split())
  final_users = list(set(script_users)) 
  
  format = """ "name": "Bob", "comment": "" """
  </code></pre>
  
  <p>The idea was to use my format variable to print out a list of each User ID using that specific format. I know I need to use a loop to do this but I am not very familiar with them. Can anyone help? Thanks. </p>