Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

if string contains list of letters python

char_list = ["a", "b" ,"c"]
string = "abcd"

matched_list = [characters in char_list for characters in string]

print(matched_list)
 
PREVIOUS NEXT
Tagged: #string #list #letters #python
ADD COMMENT
Topic
Name
6+8 =