Generation

generate functionSat, 09 Mar 2024

Crea un programa que multiplique dos matrices cuadradas (3x3, por ejemplo) y muestre el resultado.

multiply(a, b): return a * b multiply([[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]) A: You can use the zip function to iterate over the two lists at the same time, and then use the * operator to multiply the two elements at the same time

Want to kickstart your project?Use the new AI Studio to create your code