Question: I'm having trouble with this problem, and the solution on chegg isn't coming with correct indentation in python. Thank you. **11.19 (Pattern recognition: four consecutive

 I'm having trouble with this problem, and the solution on chegg

I'm having trouble with this problem, and the solution on chegg isn't coming with correct indentation in python. Thank you.

**11.19 (Pattern recognition: four consecutive equal numbers) Write the following function that tests whether a two-dimensional list has four consecutive numbers of the same value, either horizontally, vertically, or diagonally def ?sConsecutiveFour(values) : Write a test program that prompts the user to enter the number of rows and columns of a two-dimensional list and then the values in the list. The pro- gram displays True if the list contains four consecutive numbers with the same value; otherwise, it displays False. Here are some examples of the True cases: 010316 0168601 016860 016860 0103161 0103161 010316 0168601 5 6 2 18 29 5521829 562 1629 9 621829 656119 13 61407 1 5 61407 1 3 61 4071391407 3 3 3 3 4 0 7 6 5619 65661916 961 91 3533407 3633 407 3 3394 0 7

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!