I have a list of numbers(let's say list_num = []
) from 0 to x. It may not contain all the numbers between 0 and x (ie, skipping say 4 and 7), but I don't know.
I want to get the first missing number from the list or, if none are missing, I want to get the next number after ( something like: len(list_num)
<- no +1 because the list starts at 0).
I have tried this and this, but they are both slightly different
How can I do this Python 3? I don't mind using some APIs.