title: Number Triangle using user input
body: <p>Trying to create a number triangle using user input for each individual part of the triangle. I figured out how to put each row into a list and get user input for each individual number but I need help doing it without having each row in a list.</p>
  
  <pre><code>rows = int(dataLines) # --&gt; convert user input to an integer
  def triangle(rows):
      PrintingList = list()
      for rownum in range (1, rows + 1): # use colon after control structure to denote the beginning of block of code
          PrintingList.append([]) # append a row
          for iteration in range (rownum):
              newValue = input("Please enter the next number:")
              PrintingList[rownum - 1].append(int(newValue))
              print()
  
      for item in PrintingList:
        print (item)
  triangle(rows)
  </code></pre>
  
  <p>This only got me lists for each row.
  Desired output would be something like</p>
  
  <p>1</p>
  
  <p>2  5 </p>
  
  <p>5  7  8 </p>
  
  <p>9  15  2  3  </p>
  
  <p>using user input for each individual number</p>