May-12-2020, 11:45 AM
hi,
is there any good ways to find the location of a value in a list that consist of multiple brackets?
so for example:
print(test.index("cat"))
ValueError: tuple.index(x): x not in tuple
[Finished in 0.2s with exit code 1]
is there any good ways to find the location of a value in a list that consist of multiple brackets?
so for example:
test = ["54", "cat", "99", "1238"], ["758", "tre", "1233124"], ["hva skjer", "15684", "0"] print(test.index("758")gives the error:
print(test.index("cat"))
ValueError: tuple.index(x): x not in tuple
[Finished in 0.2s with exit code 1]