How do I print certain parts of an array inside an array in python 3

To index a single array you need to state which one you want to print

A = ["test", "Jam", "boo"]
print(A[0])

test

if each array has multiple values you simply do the same as before inside each one

A = [["Toast", "sausage", "eggs"], ["breakfast", "lunch", "dinner"]
print(A[0][0])
Toast

Leave a Comment