How to access specific element from a 2d list without using numpy | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to access specific element from a 2d list without using numpy

Let's say x = [[1, 2, 3, 4], [5, 6, 7, 8]] #print(x[0[1]]) #print(x[0], 0) Anyways both of them gave error so is there any way to access integer 1 without using numpy?

2nd Jul 2020, 2:53 AM
Sainath Dora
2 Answers
+ 1
You just confused your braces a lot... print(arr[0][0]);
2nd Jul 2020, 2:59 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
Thanks a lot man
2nd Jul 2020, 3:22 AM
Sainath Dora