Can you help me explain this choice, how it's returning 6? It's one of the practice codes. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you help me explain this choice, how it's returning 6? It's one of the practice codes.

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

14th Mar 2021, 4:31 AM
Shubham Sharma
Shubham Sharma - avatar
3 Answers
+ 2
m[1] means the 2nd array as array starts from index 0 so 0 is the 1st array and 1 is the 2nd array then m[1][2] is the 2nd array 3rd element 0,1,2 so 2 is third thats y its returning 6
14th Mar 2021, 5:21 AM
Sharique Khan
Sharique Khan - avatar
+ 1
Thank you so much guys Sharique Khan Jan Markus I'll try to ask less naive questions in the future but having a great community support helps a lot.
14th Mar 2021, 6:08 AM
Shubham Sharma
Shubham Sharma - avatar
+ 1
https://www.sololearn.com/post/983706/?ref=app Beginners can ask any questions here Also, experts can add tips here for the beginners
14th Mar 2021, 6:10 AM
Sharique Khan
Sharique Khan - avatar