Question: 
Write a python function to find the length of the shortest word.


Model's Code:
def len_log(words):
    return len(min(words, key=len))



Sample Correct Code:
def len_log(list1):
    min=len(list1[0])
    for i in list1:
        if len(i)<min:
            min=len(i)
    return min


Asserts:
assert len_log(["win","lose","great"]) == 3
assert len_log(["a","ab","abc"]) == 1
assert len_log(["12","12","1234"]) == 2


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

Test 947 of 974: 727/947 (76.76874340021119%): success