The code for my function works correctly, but it is not returning the function in the format I would like. The function counts seed values in a 2nd sequence and then is supposed to return the seed counts as a list of integers. It is returning the seed counts but on separate lines rather then in a list. Here is my code and what its returning in command prompt.
for c in seeds:
for d in xs:
You are almost done, but if you want to print the output in a list you must first create list.Here try this:
def count_each(seeds,xs): output =  for c in seeds: count=0 for d in xs: if c==d: count=count+1 output.append(count) print (output)