I have a target list as
target_list = ['one', 'two', 'three','four', 'five']
And a output list as
output_list = ['two','three','four', 'five']
The target_list
is fixed, while the output_list
will change depending on the output of some function. I want to find which element will be missed in the target_list
based on the observation from output_list
.
As in the above example, the element one
is missing. I also want to count the number of missing element. Could you help me to do it in python?