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 Antwort
+ 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