You are given a list seq of numbers.
Return True if seq is an arithmetic progression and False otherwise. A sequence is an arithmetic progression when the difference between every pair of consecutive elements is the same constant.
Any sequence with fewer than 3 elements (including the empty list and single-element lists) is considered an arithmetic progression, so return True for those.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
[1, 3, 5, 7]
Returns
True