Python list inside list | SoloLearn: Learn to code for FREE!

+2

Python list inside list

combo = [ [57, .23, 10.20, 3.7, 3.81, 13.49, 10.0], [56, .89, 9.85, 1.3, 2.04, 9.99, 4.5] ] print( combo[0[2]] ) This returns error ' TypeError: 'int' object is not subscriptable '. How would I properly print a specific number from a list inside a list?

5/3/2019 10:10:12 AM

Branam

2 Answers

New Answer

+6

It's actually like this: print(combo[0][2])

+2

Solved Thank you