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

3rd May 2019, 10:10 AM
Branam
Branam - avatar
2 Respostas
+ 2
Solved Thank you
3rd May 2019, 10:14 AM
Branam
Branam - avatar