Trying to write a for function that takes two strings and returns the characters that intersect in the order that they appear in the first string.
Here\'s what I tri
easiest is to use sets in python
>>> a='asdfasdfasfd' >>> b='qazwsxedc' >>> set(a).intersection(b) set(['a', 's', 'd'])