Question: 
Write a function to split a list for every nth element.


Model's Code:
def list_split(lst, n):
    return [[lst[i] for i in range(j, len(lst), n)] for j in range(n)]



Sample Correct Code:
def list_split(S, step):
    return [S[i::step] for i in range(step)]


Asserts:
assert list_split(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n'],3)==[['a', 'd', 'g', 'j', 'm'], ['b', 'e', 'h', 'k', 'n'], ['c', 'f', 'i', 'l']] 
assert list_split([1,2,3,4,5,6,7,8,9,10,11,12,13,14],3)==[[1,4,7,10,13], [2,5,8,11,14], [3,6,9,12]] 
assert list_split(['python','java','C','C++','DBMS','SQL'],2)==[['python', 'C', 'DBMS'], ['java', 'C++', 'SQL']] 


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 265 of 974: 190/265 (71.69811320754717%): success