Answer:
def get_common_elems(lst1, lst2):
common_list = []
for e in lst1:
if e in lst2:
common_list.append(e)
return common_list
Step-by-step explanation:
Create a function called get_common_elems that takes two lists, lst1, and lst2
Inside the function:
Create an empty list to hold the common elements
Initialize a for loop that iterates through the lst1.
If an element in lst1 is also in the lst2, append that element to the common_list
When the loop is done, return the common_list