Answered step by step
Verified Expert Solution
Question
1 Approved Answer
8 . Implement crossout Read the specification of the function crossout in the module funcs. This function is very similar to the one of the
Implement crossout
Read the specification of the function crossout in the module funcs. This function is very similar to the one of the same name from Exercise The only difference is that this function modifies the original list and does not return anything. Look at the test cases in tests.py if you are unsure about how it works.
Remember that you should never modify the loopsequence in a forloop. So your implementation should either loop over something else positions or use a whileloop. Also: you will need to remove rows and columns by their index numbers for this function. What list methods can be used for this? Refer to the list methods documentation page, linked from the Calling List Methods video in Module Three to review your options.
When you have implemented the function, test your answer with the test script before moving on to the next function.
def crossouttablerow,col:
Modifies the table to remove the given row and column.
Examples:
If a crossouta changes a to
If a crossouta changes a to
If a crossouta changes a to
If a crossouta changes a to
Parameter table: the nested list to modify
Precondition: table is a table of numbers. In other words,
table is a nested D list in rowmajor order,
each row contains only numbers, and
each row is the same length.
Parameter row: the row to remove
Precondition: row is an index int for a row of table
Parameter col: the colummn to remove
Precondition: col is an index int for a column of table
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started