I am trying to take user input as a string and check it against a list of characters, I want the user to create a word using only characters from the list.
So far I can check that the first letter is correct but any more than that and my test fails!
wordInput = str(input("words please: "))
if wordInput in ['w', 'v', 'g']:
print("yes")
else:
print("no")
I'm not sure how I can take the input and split it so that my test recognizes each individual character of the input rather than testing the input literally against the characters in the list.
Any help would be gratefully received, Thank you