<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Create a script that filters the list of strings and returns only the strings that contain the specific, user-specified character.
User Character: 'a'
List: ['apple','peach','pear','tangerine','plum','grape','banana']<|im_end|>
<|im_start|>assistant
def filter_string(strings, char):
  result = []
  for string in strings:
    if char in string:
      result.append(string)
  return result

print(filter_string(['apple','peach','pear','tangerine','plum','grape','banana'], 'a'))<|im_end|>
