title: Why does my loop rotate only once?
body: <p>I'm supposed to write a function which gets a list and rotates it several times (number of rotation is given)</p>
  
  <pre><code>def rotate1(lst):
  
  print(lst[-1:]+lst[:-1])
  
  def rotatek_v1(lst,k):
      for i in range(0,k):
         rotate1(lst)
      print(lst)
  </code></pre>
  
  <p>for some reason, in the second function it rotates only once but I need it to rotate k times (I need it to run the function rotate1 k times), what should I fix?</p>
  
  <p>Thanks</p>