Question: 
Write a function to rotate a given list by specified number of items to the left direction.


Model's Code:
def rotate_left(lst, n, m):
    n = n % len(lst)
    return lst[n:] + lst[:n] + lst[:m]



Sample Correct Code:
def rotate_left(list1,m,n):
  result =  list1[m:]+list1[:n]
  return result


Asserts:
assert rotate_left([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],3,4)==[4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4]
assert rotate_left([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],2,2)==[3, 4, 5, 6, 7, 8, 9, 10, 1, 2]
assert rotate_left([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],5,2)==[6, 7, 8, 9, 10, 1, 2]


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 328 of 974: 235/328 (71.64634146341463%): failed