Question: What does the following code segment do? Assume random module has been imported and matrix has been initialized with 3 rows and 3 columns
What does the following code segment do? Assume random module has been imported and matrix has been initialized with 3 rows and 3 columns with value 0. for row in range(len(matrix)): for column in range(len(matrix[row])): matrix[row][column] = random.randint(0, 99)
Step by Step Solution
There are 3 Steps involved in it
This code segment initializes each element of the m... View full answer
Get step-by-step solutions from verified subject matter experts
