+ 3
Why output of the code isn't [[]] ?
2 odpowiedzi
+ 2
Hi.
The output is correct. Is an array that contains one element that is an array. The three dots inside the array means more elements inside, in this case the same array infinitly. Thats why you got [[...]] instead of [[]].
Here' s a code so you can compare.
https://code.sololearn.com/cHNlBudzw01K/?ref=app
+ 2
Thank you