title: Python, nested loops print on one line, multiple copies
body: <p>Very new to python so please excuse!</p>
  
  <p>question is...to make an output look like </p>
  
  <pre><code>1 2 3 4 5
  
  1 2 3 4 5
  
  1 2 3 4 5
  </code></pre>
  
  <p>I am using user input for the limit and the number of copies ( in this example 5 and 3), so  I have done this;</p>
  
  <pre><code>limit = int(input("Select upper limit"))
  copies = int(input("Select number of copies"))
  
  
  def output(limit):
      for i in range(copies):
          for x in range(limit):
              print (x + 1, end=" ")
  
  
  output(limit)
  </code></pre>
  
  <p>However the answer shows up as <code>1 2 3 4 5 1 2 3 4 5 1 2 3 4 5</code>. I know it's because of the <code>end=" "</code> but not sure how to get around it! Any help appreciated</p>