Daftar Python berisi substring
str_list = ["one", "two", "three"]
substr = "wo"
if any(substr in str for str in str_list):
print('Yes!')
ARtemachka
str_list = ["one", "two", "three"]
substr = "wo"
if any(substr in str for str in str_list):
print('Yes!')
import re
print(re.search('[a-zA-Z]', "anything"))
char_list = ["a", "b" ,"c"]
string = "abcd"
matched_list = [characters in char_list for characters in string]
print(matched_list)