Question: Write a Python function, named find_consecutives, which accepts a tuple of integers as input. The function will find and return a list of consecutive numbers

 Write a Python function, named "find_consecutives", which accepts a tuple of

Write a Python function, named "find_consecutives", which accepts a tuple of integers as input. The function will find and return a list of consecutive numbers in the input tuple. $\begin{array}{rll}\text { Example: } & \text { Input list: } & (2,8,4,6,1,2,8,4,7,9,5,6,7) 1 & \text { Returned list: } & {[[1,2],[5,6,7]]}\end{array}$ CS.PC.008

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!