Can anyone please explain why this exception has been occured? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Can anyone please explain why this exception has been occured?

https://code.sololearn.com/cn78BO6bRJ56/?ref=app

1st Jun 2022, 1:51 PM
Anamitra Bera
Anamitra Bera - avatar
1 Respuesta
+ 2
You're passing two individual arrays to the parameter b. Encapsulate them in another set of square brackets like this: ([[5, 6], [7, 8]]) This will make it a 2D array.
1st Jun 2022, 2:03 PM
Pardha Saradhy
Pardha Saradhy - avatar