# PROBLEM 8


def satisfiesF(L):
    """
    Assumes L is a list of strings
    Assume function f is already defined for you and it maps a string to a Boolean
    Mutates L such that it contains all of the strings, s, originally in L such
            that f(s) returns True, and no other elements
    Returns the length of L after mutation
    """
    
    harsh = L[:]
    for x in harsh:
        if f(x) == False:
            a = L.index(x)
            del L[a]
    return len(L)
    
    
run_satisfiesF(L, satisfiesF)     

Create Quiz-Problem8.py