I have a list of letters.
I need to define a function that will take two arguments, first is a string, second is a list of letters. Then return a bool indicating whether all letters in the string are in the list of letters or not.
I tried for loops but it would only check the 0 index and nothing else.
lettersGuessed = ['a', 'b','c', 'p', 'l', 'e']
def isWordGuessed(str, lettersGuessed):
    '''
    secretWord: string, the word the user is guessing
    lettersGuessed: list, what letters have been guessed so far
    returns: boolean, True if all the letters of secretWord are in lettersGuessed;
      False otherwise
    '''
    if all(list(str)) in lettersGuessed:
        return True
    else:
        return False
print(isWordGuessed('bcp', lettersGuessed))
 
     
    