summaryrefslogtreecommitdiff
path: root/progs/a915.py
blob: 6298b31e89d32ab7ec6ecf849c77184875fd8737 (plain)
1
2
3
4
5
6
def Seq_Linear(seq_nums):
  seq_nums = [seq_nums[x] - seq_nums[x-1] for x in range(1, len(seq_nums))]
  if len(set(seq_nums)) == 1: 
    return "Linear Sequence"
  else:
    return "Non Linear Sequence"