Question: My professor says the answer to my code should be 2 but I am confused can someone help me once more, this is my second

My professor says the answer to my code should be 2 but I am confused can someone help me once more, this is my second time asking for help and I feel so discouraged because I am not understanding the problem. i have shortened down the code like my professor asked but I am still getting 10 instead of 2. please help me :(

My professor says the answer to my code should be 2 but

3. (15) Create a function called most_consecutive_digits which will take as input a path to a file and will return the length of the longest consecutive sequence of digits in the file. The re module could be of use here, the findall function in particular

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