Question: I need code in Phyton that will detect consecutive numbers ,and numbers not in range. for example if we have 1,2,3,5,9,10,11,15 the function would we

I need code in Phyton that will detect consecutive numbers ,and numbers not in range.

for example if we have 1,2,3,5,9,10,11,15

the function would we want to store 1,2,3 in a separate array then 5, in separate, then 9,10,11 in separate and 15 separate

i will use this function in my code to append it to somewhere else.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!