def validate_sequence(seq):
    return seq == [x for x in range(seq[0],seq[-1]+1, abs(seq[1]-seq[0]))]

'''
Create a function that will return true if all numbers in the sequence follow the
same counting pattern. If the sequence of numbers does not follow the same pattern,
the function should return false.

Sequences will be presented in an array of varied length. Each array will have
a minimum of 3 numbers in it.

The sequences are all simple and will not step up in varying increments
such as a Fibonacci sequence.

JavaScript examples:

validateSequence([1,2,3,4,5,6,7,8,9]) === true
validateSequence([1,2,3,4,5,8,7,8,9]) === false
validateSequence([2,4,6,8,10]) === true
validateSequence([0,2,4,6,8]) === true
validateSequence([1,3,5,7,9]) === true
validateSequence([1,2,4,8,16,32,64]) === false
validateSequence([0,1,1,2,3,5,8,13,21,34]) === false

'''
