I am new to python programming, so please carry over my question with a newbie ...
I have one starting list (list1), which I cleared for duplicates, and eventually a list appears with one of each value (list2):
list1 = [13, 19, 13, 2, 16, 6, 5, 19, 20, 21, 20, 13, 19, 13, 16],
list2 = [13, 19, 2, 16, 6, 5, 20, 21]
I want to count how many times each of the values in "list2" appears in "list1", but I cannot figure out how to do this without making a mistake.
The result I'm looking for looks like this:
The number 13 is presented 1 time in the list1. ........ Number 16 is presented 2 times in the list1.