I have a list:
a = [1, 2, 6, 4, 3, 5, 7]
Please, explain mne how to check whether element appears only once in in the list?
Please, also explain if all elements from 1 to len(a) are in the list. For inctance, in list 'a' element from 1 to 7 are in the list, but if the list is b = [1, 4, 3, 5], then not all elements from 1 to 4 are not in the list.
Thank you!