i have a list:
a = ['a','b','c'.........'A','B','C'.........'Z']
and i have string:
string1= 's#$%ERGdfhliisgdfjkskjdfW$JWLI3590823r'
i want to keep ONLY those characters in string1
that exist in a
what is the most effecient way to do this? perhaps instead of having a
be a list, i should just make it a string? like this a='abcdefg..........ABC..Z'
??