title: Using for loops to create multiple lists with identical elements
body: <p>So I have a function. </p>
  
  <pre><code>def createj(n): 
      output = []
      for i in range(n+1):
          output.append(range(1,i+1))
      return output
  </code></pre>
  
  <p>Presently, when I print createj(2) it gives me [[], [1], [1,2,3]]. I want it to return [[1],[2,2]] or when i print createj(4); it prints [[1], [2,2], [3,3,3],[4,4,4,4]]. I know I must use a for loop but there is clearly a large error in my for loop which keep making mistakes on. Thanks!</p>