Question: 
Write a function to select the nth items of a list.


Model's Code:
def nth_items(lst, n):
    return [lst[i] for i in range(len(lst)) if i % n == 0]



Sample Correct Code:
def nth_items(list,n):
 return list[::n]


Asserts:
assert nth_items([1, 2, 3, 4, 5, 6, 7, 8, 9],2)==[1, 3, 5, 7, 9] 
assert nth_items([10,15,19,17,16,18],3)==[10,17] 
assert nth_items([14,16,19,15,17],4)==[14,17]


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

Test 536 of 974: 395/536 (73.69402985074626%): success