If I have a list such as:
lst3 = [[1, 2, "ABC"],["EF", 5, 6, 7, 8]]
Is there a way to select the number 2 and the number 7 from within their nested lists?
Just access them through their indexes:
print(lst3[0][1])
print(lst3[1][3])
Output
2
7
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With