Question: Create a Python function, named sequenceMax, that takes a list of numbers and returns the length of the longestsequence of consecutive equal elements. Return I

Create a Python function, named sequenceMax, that takes a list of numbers and returns the length of the longestsequence of consecutive equal elements. Return I if there is no sequence of consecutive equal elements. Don't forget to add thecontract type in comments.

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python function named sequenceMax that takes a list of numbers and returns the length of the ... View full answer

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 Programming Questions!