input: Write a python function to find common elements between two lists.
  assert common_elements([1, 2, 3], [3, 4, 5]) == [3]
  assert common_elements([10, 20, 30], [30, 40, 50]) == [30]
  assert common_elements(['apple', 'banana', 'cherry'], ['cherry', 'date', 'fig']) == ['cherry']
output: def common_elements(list1, list2):
      return [element for element in list1 if element in list2]