This code snippet is designed to find the missing number in a sequence of integers with python 2.7.

I’ve tested it with several lists in python which are commented at the start of the script.

The next snippet do the same thing in less code:

Or this one: