Write a Python code to compare two list and print the elements which are common between them.
list1 = [2, 3, 5, 8]
list2 = [1, 4, 5, 9]
list1 = [2, 3, 5, 8]
list2 = [1, 4, 5, 9]

common_elements =  [element for element in list1 if element in list2]

print(common_elements)