I have a list:
a = [1, 2, 6, 4, 3, 5, 7]
Please explain to me how to check if an item appears only once in the list?
Please also explain whether all items from 1 to are listed len(a). For example, in the list item 'a', 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!
source
share