title: Python: How to append to dict without "key"?
body: <p>I have a python function which returns a dict. Now I want to call this function various times and append all these returned dicts to the first one.</p>
  
  <pre><code>def generate_dict(greeting):
      n = len(greeting)
      i = int(np.random.random()*(n-1))
      j = int(np.random.random()*(n-1))
      text = greeting[i] + greeting[j]
      start = text.find(greeting[i])
      return {"text": text,
              "Intention": "Greet",
              "entity": [
                  {
                       "start": start,
                       "end": start + len(greeting[i]),
                       "value": greeting[i],
                       "entity": "Hello"
                  }
              ],
             }
  
  greeting = ['Hallo', 'Hey', 'Hi']
  
  dict1 = generate_dict(greeting)
  for k in range(1,10):
      dict1[k] = generate_dict(greeting)
  
  print dict1
  </code></pre>
  
  <p>This code gives me as a result something like: </p>
  
  <pre><code>{1: {'text': 'HeyHey', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'}, 2: {'text': 'HeyHallo', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'}, 3: {'text': 'HeyHallo', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'}, 4: {'text': 'HeyHallo', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'}, ... }
  </code></pre>
  
  <p>But I would like to get: </p>
  
  <pre><code>{'text': 'HeyHey', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'},{'text': 'HeyHallo', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'},{'text': 'HeyHallo', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'},{'text': 'HeyHallo', 'entity': [{'start': 0, 'end': 3, 'value': 'Hey', 'entity': 'Hello'}], 'Intention': 'Greet'}, ...
  </code></pre>
  
  <p>How can I archieve this? </p>