title: How do I make the value of a dictionary constant when passing in a variable multiple times?
body: <pre><code>original_number = int(input('Please enter a number: '))
  
  all_divisors = {} # lists all of the divisors
  b = [1]
  
  # adds 1 to the end of b, then puts it into all_divisors with key
  # equal to its divisor, its value is a list of 1's with a number of 1's
  # equal to the key
  for a in range(2, original_number + 1):
      b.append(1)
      all_divisors[a] = b
      print(all_divisors) # just to make sure everything works properly
  </code></pre>
  
  <p>What I'm trying to do is get a result like:</p>
  
  <pre><code>Please enter a number: 4
  {2: [1, 1]}
  {2: [1, 1], 3: [1, 1, 1]}
  {2: [1, 1], 3: [1, 1, 1], 4: [1, 1, 1, 1]}
  </code></pre>
  
  <p>Instead, I get:</p>
  
  <pre><code>Please enter a number: 4
  {2: [1, 1]}
  {2: [1, 1, 1], 3: [1, 1, 1]}
  {2: [1, 1, 1, 1], 3: [1, 1, 1, 1], 4: [1, 1, 1, 1]}
  </code></pre>
  
  <p>How do I get each value in the dictionary to be the value of b when it's passed in? (That is the correct use of 'pass in' right?)</p>