Home > Python >Python Exercise: First Nonconsective Number
First Nonconsective Number
Write a program to print out the first element of a list
that is not consecutive. For example, if the input list is
[1,2,3,4,8,9], the output should be 8.
If the whole list is consecutive, your output should be None.
If the list is empty or only have one element, you should
also print out None. You can assume the list is sorted in