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
You can use python sets http://docs.python.org/library/stdtypes.html#set to do this, like so:
>>> set("asdfasdfasfd") & set("qazwsxedc") set(['a', 's', 'd'])