title: TypeError: 'range' object does not support item assignment
body: <p>I was looking at some <code>python 2.x</code> code and attempted to translate it to <code>py 3.x</code> but I'm stuck on this section. Could anyone clarify what is wrong? </p>
  
  <pre><code>import random
  
  emails = {
      "x": "[REDACTED]@hotmail.com",
      "x2": "[REDACTED]@hotmail.com",
      "x3": "[REDACTED]@hotmail.com"
  }
  
  people = emails.keys()
  
  #generate a number for everyone
  allocations = range(len(people))
  random.shuffle(allocations)
  </code></pre>
  
  <p>This was the error given:</p>
  
  <pre><code>TypeError: 'range' object does not support item assignment
  </code></pre>