Hello Everyone!
I need help with dividing a list of numbers in to groups of numbers that have constant difference between them. This constant number does not change it remains the same . e.g. 1000 in the following example:
Thank you in advance.
The list is:
List = [ 40000, 41000, 42000, 43000, 54000, 55000, 56000, 90000]
the routine i need should give me:
grp1 = [40000, 41000, 42000, 43000]
grp2 = [54000, 55000, 56000]
grp3 = [90000]
I need help with dividing a list of numbers in to groups of numbers that have constant difference between them. This constant number does not change it remains the same . e.g. 1000 in the following example:
Thank you in advance.
The list is:
List = [ 40000, 41000, 42000, 43000, 54000, 55000, 56000, 90000]
the routine i need should give me:
grp1 = [40000, 41000, 42000, 43000]
grp2 = [54000, 55000, 56000]
grp3 = [90000]
Comment